Questions tagged [base58]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
44 views

Which hash function is used when converting an address from raw bytes?

With the raw address 0x0000861299624c9a3b52be10762c64bac282b1c02316 the first 4 characters (0000 in this case) represent tz1 and the rest of the string is the raw Tezos address. From my research it ...
  • 449
1 vote
1 answer
41 views

Encoding ed25519 issues

var crypto = require('crypto'); var ed25519 = require('./'); const seed = crypto.randomBytes(32); const keyPair = ed25519.MakeKeypair(seed); const base58encoded = base58.encode(keyPair.publicKey); ...
0 votes
0 answers
23 views

How to create a base58 encoding address of public key? [duplicate]

Need to create a encoding address of public key. Is there any library file for create a encoding address?
2 votes
1 answer
437 views

Understanding base58check encoding of a Tezos public key

I would like to fully understand how base58 encoding for a Tezos public key works, what are specific parts of an encoded edpk version and what do they stand for. I attempted to create such key ...
  • 95
2 votes
1 answer
665 views

How to convert ed25519 bytes to Tezos public key

I tried to do that by base58 encoding ed255191 public key bytes. Consider a following code sample: const seed = crypto.randomBytes(32); const keyPair = ed25519.MakeKeypair(seed); const base58encoded =...
  • 95
1 vote
0 answers
87 views

Solved -Failed to read a b58check_encoding data - Tezos Signer

I'm doing everything as directed by this tutorial. https://github.com/habanoz/tezos-reward-distributor/wiki/How-to-use-tezos-signer ./tezos-signer import secret key teste2019 encrypted:...
1 vote
1 answer
214 views

Decode a Tezos hexadecimal operation

I ran tezos-baker with the -l option to see all the RPC calls it makes to construct a block. Eventually, I see this: >>>>220: http://10.10.10.203:20001/keys/...
  • 3,414
7 votes
3 answers
299 views

How do I base58 encode the chain ID using Python?

When Tezos needs to sign a baking or endorsement operation payload, byte 0 will be a 0x01 for a baking operation or 0x02 for an endorsement operation. Bytes 1-5 in the operation payload contain the ...
4 votes
2 answers
433 views

base58 prefixes

Module Prefix in src/lib_crypto/base58.ml has lines such as let ed25519_public_key_hash = "\006\161\159" (* tz1(36) *). How does one get "\006\161\159" from tz1(36)?