Expand description
Safecoin program utilities for Plain Old Data types
Structs§
- Optional
NonZero Encryption Pubkey - An EncryptionPubkey that encodes
None
as all0
, meant to be usable as a Pod type. - Optional
NonZero Pubkey - A Pubkey that encodes
None
as all0
, meant to be usable as a Pod type, similar to all NonZero* number types from the bytemuck library. - PodBool
- The standard
bool
is not aPod
, define a replacement that is - PodI16
i16
type that can be used inPod
s- PodI64
i64
type that can be used inPod
s- PodU16
u16
type that can be used inPod
s- PodU64
u64
type that can be used inPod
s
Functions§
- pod_
bytes_ of - Convert a
Pod
into a slice (zero copy) - pod_
from_ bytes - Convert a slice into a
Pod
(zero copy) - pod_
from_ bytes_ mut - Convert a slice into a mutable
Pod
(zero copy) - pod_
get_ packed_ len - On-chain size of a
Pod
type - pod_
maybe_ from_ bytes - Maybe convert a slice into a
Pod
(zero copy)
Type Aliases§
- Encryption
Pubkey - ElGamal public key used for encryption