Skip to content

cryptidtech/multitrait

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multitrait

This crate contains three helpful traits common to most/all multiformats objects:

EncodeInto : Defines a single function for encoding a value into a Vec<u8>

TryDecodeFrom : Defines a simple interface for fallibly decoding a value from a &[u8] while tracking which bytes have been consumed.

Null : Defines two functions for creating a "null" multiformats value and for testing if a multiformats value is the null value. This allows for the definition of a "null" CID or a "null" VLAD or even a "null" Multisig.

About

Traits useful for multicodec based type crates

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages