Questions tagged [hash]
The hash tag has no usage guidance.
16
questions
2
votes
1
answer
37
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 ...
1
vote
1
answer
399
views
How to get hash of operation without injecting in chain
Can I get txn hash without injecting operation in block chain? After injecting I will get same txn hash?
1
vote
2
answers
30
views
Authenticating users in contracts
I'm aware I could tell which wallet address is calling the contract and whitelist certain addresses. But how could I instead make a contract that can only be used by people who hold a certain secret ...
1
vote
1
answer
443
views
Converting a hash into an int within a range
I have a contract where I'd like to convert a hash (sha256 in this case, but I'm open to any of the other hashing algorithms available) into an Int (or Nat) between 1 and 100.
I have the code that ...
0
votes
0
answers
46
views
How to create provable burn address containing specific words?
I'd like to Burn a portion of the Tezos Till We Bezos token supply to a MacKenzie themed address in keeping with the meme https://www.theguardian.com/technology/2019/jun/30/amazon-jeff-bezos-ex-wife-...
1
vote
1
answer
325
views
Pseudo-random numbers for NFT attribute random generation
I'd like to generate an NFT within a contract and give it a randomly occurring attribute.
As I search, it seems that the only fully-secure way to do this is to use an Oracle or build some sort of ...
1
vote
0
answers
48
views
How do I generate my public key hash?
I have most of the data for my ICO wallet except the public key hash.
The PDF that came with that data is gone, so no I cant go find it there.
Is there no way I can generate to myself?
I have the eth ...
5
votes
2
answers
392
views
How is the hash code of blocks generated?
Consider any given block of the chain (e.g. this one). Its hash code is:
BL7wTUBp1apNisdzsjbb8dRYGGxoKDQxeMB3XqBNHoiqeL5URs2
I am developing a tool that takes this hash code and produces a "random" ...
2
votes
1
answer
120
views
Ledger Blake2b hash calculation
How is the “Ledger Blake2b hash” calculated by the tezos-client and the Ledger? I can calculate the other hashes, but unable to figure out the “Ledger Blake2b hash”:
Raw Script-expression-ID-Hash: ...
4
votes
3
answers
254
views
How are the originated contract addreses (KT1) computed?
How are smart contract addresses (those that start with KT1) computed?
I would like to know whether CHAIN_ID is somehow used in its computation, or it is possible to have two KT1 contracts with ...
1
vote
1
answer
65
views
Test vectors for calculating operation hash
I am writing code to calculate operation hash from the raw hex and I would like some test vectors to verify my code. Where can I find that?
3
votes
1
answer
113
views
How to I get my Public Hash Keys
I wanted to start using Tezos but I do not know where to get my public hash keys.
There is info given to "check your contribution" is not helping much.
Also how do I "Check My Contribution" before ...
1
vote
1
answer
197
views
Properties of transaction hashes
I am trying to find more information about the properties/format of transaction hashes.
It looks like they all start with o followed by n/p/o, they are base58 encoded and are 51 characters long. Is ...
3
votes
4
answers
1k
views
How to hash a Tezos public key
I need to create a Tezos public key hash based on a public ed25519 key only.
I am aware of an utility that generates entire keystore based on mnemonics - this is not what I need.
I'd welcome either ...
3
votes
1
answer
418
views
Creating public key hash
Could somebody please point me to a piece of working Python 3.7 code that generates a Tezos public key hash out of seed, password and e-mail address?
Everything I could find so far is always a mix of ...
1
vote
0
answers
104
views
How do I use RPC to get operation through hash [duplicate]
I want to get a transaction by its hash. For example, there is this api provided by tzscan: https://api6.tzscan.io/v3/operation/{op_hash}. I want to know how to do the same using the node RPC, but I ...