Giter Site home page Giter Site logo

Comments (3)

cffls avatar cffls commented on July 30, 2024

PaymentExtendedSigningKey.from_cbor expect the input to be CBOR bytes or a CBOR hex string of the actual key. It cannot contain other things, e.g. a string of "ed25519bip32_sk1". In this case, you probably want to parse your body.skey and extract the key's CBOR hex and pass it to the function.
If your extended key is stored in a .skey file, you might be able to load it directly using PaymentExtendedSigningKey.load("path/to/my/payment.skey"), like this example here. The key being loaded could be found here.

from pycardano.

cokariinc avatar cokariinc commented on July 30, 2024

After parsing my signingKey to a hex, I get a new error

/pycardano/serialization.py", line 317, in from_cbor
    value = loads(payload)
_cbor2.CBORDecodeValueError: unknown unsigned integer subtype 0x1e

from pycardano.

cffls avatar cffls commented on July 30, 2024

This error means the CBOR hex is corrupted. Please double check if your extracted signing key hex is correct.

from pycardano.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.