package
Version:
v0.0.0-...-a5ce5ae
Opens a new window with list of versions in this module.
Published: Oct 4, 2022
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Node struct {
Id string `msgpack:"i"`
Did string `msgpack:"d"`
Key []byte `msgpack:"k"`
}
type Tx struct {
Version uint8 `msgpack:"v"`
Ts int64 `msgpack:"t"`
From string `msgpack:"f"`
Type TxType `msgpack:"e"`
Action TxAction `msgpack:"a"`
Data interface{} `msgpack:"d,noinline"`
Signature []byte `msgpack:"s"`
}
const (
TxActionAdd TxAction = iota + 1
TxActionUpdate
TxActionRevoke
)
const (
TxType_DID TxType = iota + 1
TxType_VC
TxType_Node
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.