Overview
| Comment: | Consolidated some constants |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
8670bc62741f4444213b2df2d1f0121b |
| User & Date: | rkeene on 2018-07-02 23:13:03.778 |
| Other Links: | manifest | tags |
Context
|
2018-07-02
| ||
| 23:24 | More options for signing and verifying a block check-in: 53b03b2ef6 user: rkeene tags: trunk | |
| 23:13 | Consolidated some constants check-in: 8670bc6274 user: rkeene tags: trunk | |
| 23:07 | Improvements to block handling check-in: 7811cddc2e user: rkeene tags: trunk | |
Changes
Modified nano.tcl
from [09538af98b]
to [99086640a8].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | + + + + + |
#! /usr/bin/env tclsh
package require json
package require json::write
namespace eval ::nano {}
namespace eval ::nano::address {}
namespace eval ::nano::key {}
namespace eval ::nano::block {}
namespace eval ::nano::block::create {}
namespace eval ::nano::account {}
set ::nano::block::hashLength 32
set ::nano::key::publicKeyLength 32
set ::nano::key::privateKeyLength 32
set ::nano::key::seedLength 32
set ::nano::address::base32alphabet {13456789abcdefghijkmnopqrstuwxyz}
proc ::nano::address::toPublicKey {address args} {
set performChecksumCheck false
set outputFormat "bytes"
foreach arg $args {
switch -exact -- $arg {
|
| ︙ | |||
102 103 104 105 106 107 108 | 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | - + - + |
default {
return -code error "Invalid option: $arg"
}
}
}
if {![info exists inputFormat]} {
|
| ︙ | |||
172 173 174 175 176 177 178 | 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 | - + |
}
default {
return -code error "Invalid option: $arg"
}
}
}
}
|
| ︙ | |||
200 201 202 203 204 205 206 | 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 | - + |
}
default {
return -code error "Invalid option: $arg"
}
}
}
|
| ︙ | |||
268 269 270 271 272 273 274 | 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 | - + - + - + - + |
}
"-binary" {
set outputFormat "bytes"
}
}
}
|
| ︙ | |||
492 493 494 495 496 497 498 | 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 | - + |
}
default {
return -code error "Invalid option: $arg"
}
}
}
|
| ︙ |