Function zebra_chain::orchard::keys::diversify_hash

source ·
fn diversify_hash(d: &[u8]) -> Point
Expand description

Used to derive a diversified base point from a diversifier value.

DiversifyHash^Orchard(d) := {︃ GroupHash^P(“z.cash:Orchard-gd”,“”), if P = 0_P P, otherwise

where P = GroupHash^P((“z.cash:Orchard-gd”, LEBS2OSP_l_d(d)))

https://zips.z.cash/protocol/nu5.pdf#concretediversifyhash