Questions tagged [encoding]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
18 views

How to decode the contents of a block using `tezos-codec`

How do I extract the operations from a block using tezos-codec? I can decode the block header as follows below, but I'm interested in seeing the contents of the block. export BLOCK="...
0
votes
0answers
10 views

Decode an endorsement operationg using tezos-codec [duplicate]

What's the encoding identifier and offset for decoding an endorsement using tezos-codec? Given: 029caecab9e3c579180719b76b585cbdf7e440914b8e09fc0e8c64a26b7a4eacd545ad653100000753c3 I can ...
3
votes
1answer
31 views

Documentation for Serializing Contract Call Data/Parameters

Is there any documentation available for how to serialize contract call parameters? I found good documentation for serialization of general operations and took a look at the tzips but neither seems ...
4
votes
3answers
155 views

How to decode raw transaction?

I am using @taquito to build and sign a transaction. But before I send it I want to decode it to check my destination address, amount etc like you would normally do for other blockchains. Not sure ...
5
votes
0answers
27 views

How to encode a transaction offline? [duplicate]

I'm writing an offline signature program without rpc,i have to encode transaction into bytes and I want to know the encoding rules. What should the tag parameter fill in? Under what circumstances do ...
7
votes
3answers
193 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 ...
6
votes
3answers
383 views

Format of public key, signature and key_hash literals

According to grammar present in Michelson specification, there are string constants for types signature, key, key_hash. What is the precise format of these strings? Specifically: Suppose I have a key ...
4
votes
1answer
223 views

Contract's address format specification

Is there a specification somewhere which explains how to compute a human-readable address of a contract? In order to originate a contract I need to provide its code, initial storage value and some ...
7
votes
2answers
179 views

Base58 encoding/decoding of addresses in Micheline

who know some javascript library for decoding optimized Micheline representation of an address value? 011cd5f135e80fd8ebb6e43335b24ca6116edeba6900 => KT1BDEn6wobs7tDReKkGheXAhoq278TGaNn5