mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
updated submodules, bugfixes
- added new fift/func code for validator complaint creation - bugfixes in validator - updates in tonlib - new versions of rocksdb/abseil - hardfork support
This commit is contained in:
parent
16a4566091
commit
9f008b129f
129 changed files with 8438 additions and 879 deletions
|
@ -36,6 +36,7 @@ library TonUtil // TON Blockchain Fift Library
|
|||
|
||||
// ( x -- ) Displays a 64-digit hex number
|
||||
{ 64 0x. } : 64x.
|
||||
{ 64 0X. } : 64X.
|
||||
// ( wc addr -- ) Show address in <workchain>:<account> form
|
||||
{ swap ._ .":" 64x. } : .addr
|
||||
// ( wc addr flags -- ) Show address in base64url form
|
||||
|
@ -205,6 +206,13 @@ recursive append-long-bytes {
|
|||
{ 256 u>B B{3ee6} swap B+ dup crc16 16 u>B B+ B>base64 } : pubkey>$
|
||||
{ pubkey>$ type } : .pubkey
|
||||
|
||||
// ( S -- x ) parse validator-encoded public key
|
||||
{ base64>B dup Blen 36 <> abort"public key with magic must be 36 bytes long"
|
||||
4 B| swap 32 B>u@ 0xC6B41348 <> abort"unknown magic for public key (not Ed25519)"
|
||||
} : parse-val-pubkey
|
||||
{ bl word parse-val-pubkey 1 'nop } ::_ VPK'
|
||||
{ char } word base64>B 1 'nop } ::_ B64{
|
||||
|
||||
// adnl address parser
|
||||
{ 256 u>B B{2D} swap B+ dup crc16 16 u>B B+ } : adnl-preconv
|
||||
{ swap 32 /mod dup 26 < { 65 } { 24 } cond + rot swap hold } : Base32#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue