Check-in [f51a75c1aa]
Overview
Comment:Describe the example in the man page
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: f51a75c1aaa738ed48ee7687fd1daf7139e7b3e8b6963f4fa205a10545625d1b
User & Date: rkeene on 2018-07-10 20:04:14
Other Links: manifest | tags
Context
2018-07-11
14:14
Added start of balances and RPC client check-in: 5ed9a692b6 user: rkeene tags: trunk
2018-07-10
20:04
Describe the example in the man page check-in: f51a75c1aa user: rkeene tags: trunk
20:01
Post-release version increment check-in: b5c3178c33 user: rkeene tags: trunk
Changes

Modified nano.man from [1b94443006] to [625d4d76a6].

900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927

This procedure is used as part of the High-level Account interface.  It is
used to generate a block that changes the representative for the given
.IR account .
Its interface is subject to change and not considered stable.

.SH EXAMPLES
.SS Example 1
.EX
package require nano @@VERS@@

set seed [::nano::key::newSeed -hex]
puts "Generated seed: $seed"

for {set index 0} {$index < 10} {incr index} {
	set accountPrivateKey [::nano::key::fromSeed $seed $index -hex]
	set accountAddress [::nano::address::fromPrivateKey $accountPrivateKey]
	puts "    - $index: $accountAddress"
}
.EE

.SS Example 2
.SS Example 3

.SH AUTHOR
.Sp
Roy Keene
.RI < rkeene@nano.org >







|













<
<
<




900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920



921
922
923
924

This procedure is used as part of the High-level Account interface.  It is
used to generate a block that changes the representative for the given
.IR account .
Its interface is subject to change and not considered stable.

.SH EXAMPLES
.SS Example 1: Generate a new seed and derive 10 addresses from it
.EX
package require nano @@VERS@@

set seed [::nano::key::newSeed -hex]
puts "Generated seed: $seed"

for {set index 0} {$index < 10} {incr index} {
	set accountPrivateKey [::nano::key::fromSeed $seed $index -hex]
	set accountAddress [::nano::address::fromPrivateKey $accountPrivateKey]
	puts "    - $index: $accountAddress"
}
.EE




.SH AUTHOR
.Sp
Roy Keene
.RI < rkeene@nano.org >