Module safe_token_2022::pod
source · Expand description
Safecoin program utilities for Plain Old Data types
Structs
- An EncryptionPubkey that encodes
None
as all0
, meant to be usable as a Pod type. - 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. - The standard
bool
is not aPod
, define a replacement that is i16
type that can be used inPod
si64
type that can be used inPod
su16
type that can be used inPod
su64
type that can be used inPod
s
Functions
- Convert a
Pod
into a slice (zero copy) - Convert a slice into a
Pod
(zero copy) - Convert a slice into a mutable
Pod
(zero copy) - On-chain size of a
Pod
type - Maybe convert a slice into a
Pod
(zero copy)
Type Definitions
- ElGamal public key used for encryption