owlprotocol / merkledb

Bridge web2.0 databases with decentralized smart contracts
1 stars 1 forks source link

CBOR Decoding Library #10

Closed github-actions[bot] closed 2 years ago

github-actions[bot] commented 2 years ago

Implement functions:

enum MajorType {
    UnsignedInteger,
    NegativeInteger,
    ByteString,
    TextString,
    Array,
    Map,
    TagOfNumber,
    SimpleFloat
}
struct CBORValue {
    MajorType majorType;
    bytes value;
}
decodeCBOR(bytes memory buf) returns (CBORValue[] memory)

Decodes a CBOR-encoded buffer into an array of decoded major types and values.
closes #2