Module prelude

Source
Expand description

Re-export common types

Re-exports§

pub use super::*;

Modules§

endian_types

Structs§

AB
newtype around bytes to print/parse [[abe]] text
B64
newtype around bytes to print/parse b64 (url-safe no-padding)
Link
A Tag and LkHash
LkIdentity
LkPath
LkPathArray
LkPathPart
LkPathSegm
PointArc
Arc around the byte repr Point
PointBox
Heap allocated repr of a Point.
PointFmt
A static packet formatter similar to DEFAULT_POINT without using ABE expressions.
PointParts
Rust enum repr of a Point
PointPtr
Byte repr of a Point
PointTypeFlags
point flag indicating its type.
Space
U64
XFlags
Variable flags used in transit
XHeader
Variable fields in a crate::Point

Enums§

ControlFlow
Used to tell an operation whether it should exit early or go on as usual.
CoreTestOp
KnownOptions
LkPathError
PointError
TestOp

Traits§

LkEnv
LkEnvData is a collection of pointers the user can supply to extend the available expressions when evaluating an ab-expression This LkEnvData is packed together with a set of default scopes into a LkaScope struct. LkEnv is a utility trait - allowing you to quickly change a field in the effective LkEnvData. eg lka_eval(“”, &() as &dyn UserScope); lka_eval(“[0] [1]”, &[“hello”,“world”]);
MutXHeader
NewPoint
Trait object for callbacks that take newly created points letting the user set the net header
PFields
General trait for accessing point field.
PFieldsExt
Helper trait to access a Point’s fields like domain, group, links, publickey, etc.
Point
A trait to access fields of a point. Auto impls PointExt, PFields, and PFieldsExt.
PointExt
Utilities for Point
SetXHeader
SigningExt
Stmnts
TryAsSpace
WithNewXHeader
Enable chain calling lk_linkpoint(..).with_net_header(&XFlags…)

Functions§

ab
copy val into array of N bytes prepending 0’s as needed. panic if val > N
abf
ab with \xff as padding
as_abtxt_c
link
linkf
lkpath
now
current time as big endian u64 microseconds since epoch
try_ab

Type Aliases§

Domain
Alias for AB<[u8;16]>
GroupID
Alias for B64<[u8;32]\>
LkHash
Blake3 hash of the point fields. Alias for B64<[u8;32]\>
PubKey
Taproot Schnorr publickey. Alias for B64<[u8;32]>
RecvPointPtr
ShouldBreak
Stamp
A Big endian u64 of microseconds since EPOCH
Tag
Alias for AB<[u8;16]>