Skip to main content

pubkey_prefix

Function pubkey_prefix 

Source
pub fn pubkey_prefix(owner: &PublicKey, len: usize) -> String
Expand description

Compute the canonical prefix of an owner pubkey at a given length: base58(owner)[..len], with len saturated to the encoded string’s actual length so we never index past the end.