owlprotocol / merkledb

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

CBOR Decoding Library #2

Closed corbanvilla closed 2 years ago

corbanvilla 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.

corbanvilla commented 2 years ago

/cib

github-actions[bot] commented 2 years ago

Branch issue-2 created! Clone with: git fetch && git checkout --track origin/issue-2 Rebase develop branch changes with: git checkout issue-2 && git rebase develop