Expand description
Re-export common types
Re-exports§
pub use super::*;
Modules§
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
- LkPath
Array - LkPath
Part - LkPath
Segm - Point
Arc - Arc around the byte repr Point
- Point
Box - Heap allocated repr of a Point.
- Point
Fmt - A static packet formatter similar to DEFAULT_POINT without using ABE expressions.
- Point
Parts - Rust enum repr of a Point
- Point
Ptr - Byte repr of a Point
- Point
Type Flags - point flag indicating its type.
- Space
- U64
- XFlags
- Variable flags used in transit
- XHeader
- Variable fields in a crate::Point
Enums§
- Control
Flow - Used to tell an operation whether it should exit early or go on as usual.
- Core
Test Op - Known
Options - LkPath
Error - Point
Error - 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”]);
- MutX
Header - NewPoint
- Trait object for callbacks that take newly created points letting the user set the net header
- PFields
- General trait for accessing point field.
- PFields
Ext - 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.
- Point
Ext - Utilities for Point
- SetX
Header - Signing
Ext - Stmnts
- TryAs
Space - With
NewX Header - 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]>
- Recv
Point Ptr - Should
Break - Stamp
- A Big endian u64 of microseconds since EPOCH
- Tag
- Alias for
AB<[u8;16]>