Questions tagged [hash]
The hash tag has no usage guidance.
14 questions
1
vote
1
answer
81
views
Creating a malicious validator script whose hash equals that of an existing validator script
what is preventing an adversary to find (in many hours) a nonce that would make a malicious validator script to have the same hash and address of my validator script, and then submit it with cardano-...
0
votes
1
answer
39
views
cardano-db-sync different tx, same hash?
I'm listening for new records added on block table and have noticed that sometimes two blocks are added almost at the same time with basically the same info except for block hash (maybe a slot battle/...
1
vote
2
answers
341
views
How can I convert the hex hash ID of a stake pool to "pool1..." format in Javascript or TypeScript?
I want to convert the hash of a pool in hexadecimal to pool1... format
How can I do this?
0
votes
1
answer
70
views
Workaround for Plutus Scripts that excesses the max Tx Size. Framework or examples for splitted or modular validators?
Im very interested in how you can split the validation in several validator.
There is any model or framework to follow?
Any example around?
Could somebody at least share some words of insights about ...
1
vote
2
answers
364
views
How Does the Blockchain Use Hashes?
Hash functions are often called one way functions however this means that you should not be able to undo them. So why and how are SHA256 and SHA512 used in blockchains if they should be irreversible.
...
1
vote
2
answers
125
views
How to convert from cborHex to VRFKeyHash using both cardanocli-js and cardano-serialization-lib?
I'm using cardanocli-js to create both VRF files for running a stake pool: vrf.vkey and vrf.skey:
const vrfKeyAccount = cardanocliJs.nodeKeyGenVRF("Totem");
Then I want to read the vrf.vkey ...
0
votes
1
answer
168
views
How to retrieve staking credential hash
How to retrieve staking credential hash using cardano serialization library and what is it? How does it differ from public key hash?
1
vote
2
answers
254
views
How can I convert from cborHex to VRFKeyHash type from the Cardano Serialization Lib?
I need to generate a VRF Key Hash in this format: vrf_vk13hg4gg5fg67399nuz2ldk89kqw9h379cfgtkpvd83ra89f908kcqv2cw3j
When I generate it using cardano-cli, I get this file:
{
"type": "...
0
votes
2
answers
235
views
Is there a way to validate a policy Id,and to check if a string is an actual policy id?
im trying to build something in cardano, and i want to check if policy id provided by the user is an actual policyid?
after research i found that blake2b_224 is used for hashing the policy id,is there ...
2
votes
3
answers
241
views
How to get a base 16 hex BuiltinString from getTxId
I am trying to find a way to inspect the base16 hash from a Tx on-chain using plutus.
I get a BuiltinByteString from the txInputs here:
getTxIdBBS :: TxInInfo -> BuiltinByteString
getTxIdBBS txInfo'...
0
votes
1
answer
73
views
Building a bridge to Hedera Hashgraph HBAR
Hello Cardano community,
Does Cardano have a bridge to Hedera Hashgraph HBAR? If not, how do I build one? I need to be able to transfer NFTs and exchange cryptos directly avoiding intermediate ...
3
votes
2
answers
412
views
How to get PubKeyHash of an address without vkey?
How to get Address -> PubKeyHash without vkey just with addr like addr_test1wrf230u95zr26lut09mchmt82d235v6335jvszme2jevklslg5lfz?
It must be possible, because when you build unlocking transaction ...
1
vote
1
answer
449
views
Validate Transaction with serialization lib from a Tx Hash
I want to validate Transactions to make sure they are actual Cardano txs with correct length, format etc.
I see that Transaction object in emurgo serialization library has an 'is_valid()' method that ...
0
votes
1
answer
379
views
Hash script data
I want to understand a bit better the hash-script-data functionality from cardano-cli. I checked the source code but had no luck in understanding how this hash is made.
From the examples, if we run:
...