Questions tagged [cbor]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
16 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 ...
0 votes
0 answers
23 views

Decode the cbor datum in tx_metadata

I cannot find a way using an available nuget package, to decode the cbor data stored in tx_metadata for a given transaction. cbor.me does convert it to an object but even there I cannot find how to ...
1 vote
1 answer
227 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 $...
  • 41
4 votes
2 answers
299 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();...
  • 151
1 vote
0 answers
93 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 ...
  • 50
1 vote
1 answer
523 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 ...
  • 11
0 votes
0 answers
17 views

Clarification on policy script serialization in offchain-metadata-tools and policyid computation

I am reimplementing parts of the token-metadata-creator CLI tools in Java and got a question or need for confirmation of my assumption regarding the serialization of policy scripts and computation of ...
0 votes
2 answers
75 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 ...
  • 206
2 votes
2 answers
733 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....
  • 3,479
0 votes
1 answer
212 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 ...
  • 893
0 votes
1 answer
243 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 ...
3 votes
2 answers
272 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....
  • 1,423
5 votes
1 answer
715 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": "", ...
  • 429
0 votes
0 answers
19 views

Intimate details on Cardano pipe io

I would like to know more about the 3 protocols which extend from the Cardano pipe. My biggest questions are: What is the encoding / structure of the protocol(s)? Is tls used here and why/why not? Is ...
6 votes
1 answer
132 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 ...
  • 190