Display point in base58 (#305)
* Compress EC subgroup points before serialising * serialize and display point in base58 * Use Display for Points --------- Co-authored-by: Ahmad <root@ahmadafuni.com>
This commit is contained in:
parent
151419ec88
commit
d5da9d8593
4 changed files with 87 additions and 8 deletions
|
|
@ -180,7 +180,7 @@ impl fmt::Display for TypedValue {
|
|||
TypedValue::Set(s) => write!(f, "set:{}", s.commitment()),
|
||||
TypedValue::Array(a) => write!(f, "arr:{}", a.commitment()),
|
||||
TypedValue::Raw(v) => write!(f, "{}", v),
|
||||
TypedValue::PublicKey(p) => write!(f, "ecGFp5_pt:({},{})", p.x, p.u),
|
||||
TypedValue::PublicKey(p) => write!(f, "pk:{}", p),
|
||||
TypedValue::PodId(id) => write!(f, "pod_id:{}", id),
|
||||
}
|
||||
}
|
||||
|
|
@ -849,6 +849,7 @@ pub struct MainPodInputs<'a> {
|
|||
/// Statements that need to be made public (they can come from input pods or input
|
||||
/// statements)
|
||||
pub public_statements: &'a [Statement],
|
||||
// TODO: REMOVE THIS
|
||||
pub vd_set: VDSet,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue