You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.
In writing #86, I put together a pseudo code representation of the data model, which I will put here and then will reference there. We may want to use different notation in the spec, but this may be useful in composing kid0002:
// Notation InfoFoo(bar:int, baz:[Byte]) // data structure with bar int field and baz Byte arrayBiz=Qux|Quux|Quuz// Biz is union type of Qux, Quux, QuuzCorge(...Foo, grault:int) // Corge is composed of all the fields of Foo with the addition of grault// ReceiptsReceipt(...Message, ...EventCoordinatesWithDigest, a:EventCoordinatesWithDigest)
// ^^^^ a:EventCoordinatesWithDigest must point to establishment event// (root) EventCoordinatesWithDigest point to receipted event// EventsEstablishmentEvent(...Event, ...KeyConfig, ...WitnessConfig)
InceptionEvent(...EstablishmentEvent, c:[ConfigurationTrait])
RotationEvent(...EstablishmentEvent, a:[Seal])
DelegatedInceptionEvent(...InceptionEvent, da:EventCoordinatesWithPreviousDigest)
DelegatedRotationEvent(...RotationEvent, da:EventCoordinatesWithPreviousDigest)
KeyConfig(kt:SignatureThreshold, k:[PublicKey])
SignatureThreshold=integer|WeightedSignatureThresholdWitnessConfig(wt:integer, w:[BasicPrefix])
ConfigurationTrait=EstablishmentEventsOnly|DoNotDelegateSeal=Digest|MerkleTreeRoot|EventCoordinatesWithDigestKeyEvent(...Message, ...EventCoordinatesWithPreviousDigest)
// MessageMessage(v:Version, t:MessageType, signatures:[Signature])
// CommonEventCoordinatesWithDigest(...EventCoordinates, d:Digest)
EventCoordinatesWithPreviousDigest(...EventCoordinates, p:Digest)
EventCoordinates(i:Prefix, s:integer)
Prefix=BasicPrefix|SelfAddressedPrefix|SelfSignedPrefixBasicPrefix=PublicKeySelfAddressedPrefix=DigestSelfSignedPrefix=SignatureVersion(major:integer, minor:integer, format:Format, size:integer)
Format=JSON|CBOR|MessagePack// Crypto PrimativesMerkleTreeRoot(rd:Digest)
Signature(algorithm:SignatureAlgorithm, data:[byte])
Digest(algorithm:DigestAlgorithm, data:[byte])
SignatureAlgorithm=ED25519|ED448|ECSECP256K1DigestAlgorithm=BLAKE3|...(omitted)...
The text was updated successfully, but these errors were encountered:
In writing #86, I put together a pseudo code representation of the data model, which I will put here and then will reference there. We may want to use different notation in the spec, but this may be useful in composing kid0002:
The text was updated successfully, but these errors were encountered: