Skip to main content

Questions tagged [cbor]

The tag has no usage guidance.

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

How to decode Cbox HEX format to Go struct

Could Anyone help to decode the Cbor Hex format to a struct in Go? I've tried to define struct like the following but it seems not to be working package main import ( "encoding/hex" ...
manhdt's user avatar
  • 125
0 votes
0 answers
10 views

How can I ensure my verified message correctly wraps the original message using CIP30 signatures on macOS

I'm working with CIP30 signatures for message signing on macOS, and need to verify that the signed message (Sig_structure in CBOR format) wraps the original message properly for this [site][1]. The ...
Crypto Coupons's user avatar
0 votes
0 answers
25 views

Aiken onchain check original message wrapped in CIP30 signData signed message

I've a message that will be signed by user's wallets, the thing is wallets follow CIP30 for signing a message (payload in Sig_structure below), meaning the final signed message is like this: ...
leobelizquierdo's user avatar
1 vote
1 answer
52 views

Using cardano-cli, is their any way to decode a plutus script which is in cbor?

I am using "cardano-cli text-view decode-cbor --in-file mint.plutus" which is just returning the cbor portion as a result. Even tried saving an --out-file via: .json etc...But gives me ...
Basho's user avatar
  • 13
0 votes
1 answer
42 views

How to obtain signature from the cborhex? If i have simple-tx.signed

{ "type": "Witnessed Tx BabbageEra", "description": "Ledger Cddl Format", "cborHex": "84a3008182582088921ae2626e" } This is ...
Faizan Shaikh's user avatar
0 votes
1 answer
87 views

Console devtools sign and submit transaction

so i'm runing this to prompt a transaction on nami wallet, sign and submit. the ideal scenario was to nami wallet submit transaction for herself but somehow that is not happening, so i tried to submit ...
Mars's user avatar
  • 1
0 votes
2 answers
103 views

How to generate CBOR hex of plutus smart contract

How can i generate the CBOR hex of a plutus smart contract. Does it requires to generate CBOR of onchain code only or both onchain and offchain? Also if have a smart contract which requires parameters ...
duaa azhar's user avatar
1 vote
1 answer
339 views

Can someone show me how to get the transaction in the proper format for cip-30?

I have generate a transaction using cardano-cli and I am trying to get Nami wallet to sign the transaction. The command to build the transaction cardano-cli transaction build-raw --fee 0 --tx-in $...
Richard's user avatar
  • 41
4 votes
2 answers
512 views

Cbor address to bech32 type address in JS or python

I have managed to retrive a user address from a dapp connector wallet using JS: api_promise = window.cardano.{wallet}.enable(); api_promise.then(function(api) { addr_promise = api.getUsedAddresses();...
Lokinou's user avatar
  • 161
1 vote
0 answers
127 views

How to sign transaction externally?

I am using the cardano-serialization-lib to derive addresses and create a transaction unsigned. I am then passing that transaction hash in CBOR to an external program to handle the signing process. I ...
Michael's user avatar
  • 50
1 vote
1 answer
1k views

cbor encode and decode

hope you all are doing great. I am looking for a way to encode and decode the cborHex. I've done the following: cardano-cli text-view decode-cbor --in-file wallet.vkey --out-file tx.alonzo and I get ...
gorka's user avatar
  • 11
0 votes
2 answers
125 views

InvalidWitnessesUTXO

Some transactions I’ve been creating are throwing an InvalidWitnessesUTXO error. Appears to be happening to some specific inputs, and any transaction that includes it fails with this same error. By ...
glneto's user avatar
  • 216
2 votes
2 answers
1k views

How can I use cardano-serialization-lib in the browser to decode CBOR?

I'm building a simple website with pure HTML and JS (no React, Angular, etc.). I use Nami to connect to a Cardano wallet and use the Nami's cardano.getBalance() method to get the balance of the wallet....
eddex's user avatar
  • 3,668
0 votes
1 answer
286 views

NativeScript vs PlutusScript

In cardano serialization lib what is the difference between NativeScript and PlutusScript? Is there a way to convert from one to the other? I'm trying to load a minting policy script I made as a ...
Mateus's user avatar
  • 988
1 vote
1 answer
426 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 ...
Jose M.R.'s user avatar
3 votes
2 answers
331 views

Programmatically creating the policyid / scripthash in Javascript (Browser)

I'm looking for a Javascript implementation of the CLI's cardano-cli transaction policyid function, can anyone point me in the right direction here? Trying to replicate it with blakejs (https://github....
sean's user avatar
  • 1,463
7 votes
1 answer
1k views

How to decode cbor which is generated with cardano-cli build command?

I am trying to sign a transaction which is built on some other place and I can see only cbor for example: { "type": "TxBodyAlonzo", "description": "", ...
zarej's user avatar
  • 449
5 votes
1 answer
144 views

Re-Implementing Policy Hashing in Python

As the title says, I want to to reimplement the hashing part of a policy script in Python 3. I have already made a post over at forums.cardano.org, and someone has pointed me to the right direction of ...
tycl's user avatar
  • 180