• Eric Myhre's avatar
    New marshal implementation! Generic. Woo! · f150a81b
    Eric Myhre authored
    We have both generic marshal and unmarshal -- they should work for any
    current or future ipld.Node implementation, and for any encoding
    mechanism that can be bridged to via refmt tokens.
    
    Tests are also updated to use builders rather than the ancient
    "mutable node" nonsense, which removes... I think nearly the last
    incident of that stuff; maybe we can remove it entirely soon.
    
    As when we moved the unmarshal code into its generic form, most of
    this code already existed and needed minor modification.  Git even
    correctly detects it as a rename this time since the diff is so small.
    And as when we moved the unmarshal code, now we also remove the
    whole PushTokens interface; we've gotten to something better now.
    
    Finally we're getting to the point we can look at wiring these up
    together with all the multicodec glue and get link loading wizardry
    at full voltage.  Yesss.  Sooon.
    Signed-off-by: default avatarEric Myhre <hash@exultant.us>
    f150a81b
marshalling.go 3.09 KB