fix(addresses): Fix Byron cbor structure (#155)

* Use correct CBOR struct for Byron addresses
* Implement universal to / from string that works across all eras
This commit is contained in:
Santiago Carmuega 2022-07-23 08:18:53 -03:00 committed by GitHub
parent 435b7c665e
commit e42341c653
4 changed files with 170 additions and 51 deletions

View file

@ -274,7 +274,7 @@ impl<T> Deref for CborWrap<T> {
}
#[derive(Debug, Clone, PartialEq, PartialOrd)]
pub struct TagWrap<I, const T: u64>(I);
pub struct TagWrap<I, const T: u64>(pub I);
impl<I, const T: u64> TagWrap<I, T> {
pub fn new(inner: I) -> Self {