package byzcoin

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

message AddTxRequest

byzcoin.proto:78

AddTxRequest requests to apply a new transaction to the ledger.

message AddTxResponse

byzcoin.proto:99

AddTxResponse is the reply after an AddTxRequest is finished.

message Argument

byzcoin.proto:240

Argument is a name/value pair that will be passed to the contract.

Used in: Delete, Invoke, Spawn

message ChainConfig

byzcoin.proto:154

ChainConfig stores all the configuration information for one skipchain. It will be stored under the key [32]byte{} in the tree.

message CheckAuthorization

byzcoin.proto:134

CheckAuthorization returns the list of actions that could be executed if the signatures of the given identities are present and valid

message CheckAuthorizationResponse

byzcoin.proto:148

CheckAuthorizationResponse returns a list of Actions that the given identities can execute in the given darc. The list can be empty, which means that the given identities have now authorization in that darc at all.

message CheckStateChangeValidity

byzcoin.proto:435

CheckStateChangeValidity is a request to get the list of state changes belonging to the same block as the targeted one to compute the hash

message CheckStateChangeValidityResponse

byzcoin.proto:444

CheckStateChangeValidityResponse is the response with the list of state changes so that the hash can be compared against the one in the block

message ClientTransaction

byzcoin.proto:252

ClientTransaction is a slice of Instructions that will be applied in order. If any of the instructions fails, none of them will be applied. InstructionsHash must be the hash of the concatenation of all the instruction hashes (see the Hash method in Instruction), this hash is what every instruction must sign for the transaction to be valid.

Used in: AddTxRequest, TxResult

message Coin

byzcoin.proto:280

Coin is a generic structure holding any type of coin. Coins are defined by a genesis coin instance that is unique for each type of coin.

Used in: calypso.Write, personhood.RoPaSciStruct, personhood.SpawnerStruct

message CreateGenesisBlock

byzcoin.proto:47

CreateGenesisBlock asks the cisc-service to set up a new skipchain.

message CreateGenesisBlockResponse

byzcoin.proto:70

CreateGenesisBlockResponse holds the genesis-block of the new skipchain.

message DBKeyValue

byzcoin.proto:363

DBKeyValue represents one element in bboltdb

Used in: DownloadStateResponse

message DataBody

byzcoin.proto:38

DataBody is stored in the body of the skipblock, and it's hash is stored in the DataHeader.

message DataHeader

byzcoin.proto:21

DataHeader is the data passed to the Skipchain

message DebugRemoveRequest

byzcoin.proto:492

DebugRemoveRequest asks the conode to delete the given byzcoin-instance from its database. It needs to be signed by the private key of the conode.

message DebugRequest

byzcoin.proto:464

DebugRequest returns the list of all byzcoins if byzcoinid is empty, else it returns a dump of all instances if byzcoinid is given and exists.

message DebugResponse

byzcoin.proto:471

DebugResponse is returned from the server. Either Byzcoins is returned and holds a list of all byzcoin-instances, together with the genesis block and the latest block, or it returns a dump of all instances in the form of a slice of StateChangeBodies.

message DebugResponseByzcoin

byzcoin.proto:478

DebugResponseByzcoin represents one byzcoinid with the genesis and the latest block, as it is for debugging reasons, we trust the node and don't return any proof.

Used in: DebugResponse

message DebugResponseState

byzcoin.proto:485

DebugResponseState holds one key/state pair of the response.

Used in: DebugResponse

message Delete

byzcoin.proto:232

Delete removes the instance. The contract might enforce conditions that must be true before a Delete is executed.

Used in: Instruction

message DownloadState

byzcoin.proto:334

DownloadState requests the current global state of that node. If it is the first call to the service, then Reset must be true, else an error will be returned, or old data might be used.

message DownloadStateResponse

byzcoin.proto:350

DownloadStateResponse is returned by the service. If there are no Instances left, then the length of Instances is 0.

message GetAllByzCoinIDsRequest

byzcoin.proto:12

GetAllByzCoinIDsRequest is a request to get all the Byzcoin chains from a server.

(message has no fields)

message GetAllByzCoinIDsResponse

byzcoin.proto:16

GetAllByzCoinIDsResponse contains the list of Byzcoin chains known by a server.

message GetAllInstanceVersion

byzcoin.proto:421

GetAllInstanceVersion is a request asking for the list of state changes of a given instance

message GetAllInstanceVersionResponse

byzcoin.proto:428

GetAllInstanceVersionResponse is the response that contains the list of state changes of a instance

message GetInstanceVersion

byzcoin.proto:397

GetInstanceVersion is a request asking the service to fetch the version of the given instance

message GetInstanceVersionResponse

byzcoin.proto:414

GetInstanceVersionResponse is the response for both GetInstanceVersion and GetLastInstanceVersion. It contains the state change if it exists and the block index where it has been applied

Used in: GetAllInstanceVersionResponse

message GetLastInstanceVersion

byzcoin.proto:405

GetLastInstanceVersion is request asking for the last version of a given instance

message GetProof

byzcoin.proto:109

GetProof returns the proof that the given key is in the trie.

message GetProofResponse

byzcoin.proto:124

GetProofResponse can be used together with the Genesis block to proof that the returned key/value pair is in the trie.

message GetSignerCounters

byzcoin.proto:380

GetSignerCounters is a request to get the latest version for the specified identity.

message GetSignerCountersResponse

byzcoin.proto:387

GetSignerCountersResponse holds the latest version for the identity in the request.

message GetUpdatesReply

byzcoin.proto:518

GetUpdatesReply only sends back the instances that have a new version, but will not send any proof for an instance that didn't change.

message GetUpdatesRequest

byzcoin.proto:509

GetUpdatesRequest allows to request changes to existing instances by sending a slice of known versions. If the LatestBlockID is given, the method checks if it corresponds to the latest block. The usage of LatestBlockID is discouraged. SkipchainID should be given instead of LatestBLockID to fetch the latest versions of the instance from the given skipchain.

message IDVersion

byzcoin.proto:498

IDVersion holds the InstanceID and the latest known version of an instance.

Used in: GetUpdatesRequest

message Instruction

byzcoin.proto:182

Instruction holds only one of Spawn, Invoke, or Delete

Used in: ClientTransaction

message Invoke

byzcoin.proto:221

Invoke calls a method of an existing instance which will update its internal state.

Used in: Instruction

message PaginateRequest

byzcoin.proto:300

PaginateRequest is a request to get NumPages times the consecutive list of PageSize blocks.

message PaginateResponse

byzcoin.proto:315

PaginateResponse is a reponse from a PaginateRequest.

message Proof

byzcoin.proto:170

Proof represents everything necessary to verify a given key/value pair is stored in a skipchain. The proof is in three parts: 1. InclusionProof proves the presence or absence of the key. In case of the key being present, the value is included in the proof. 2. Latest is used to verify the Merkle tree root used in the proof is stored in the latest skipblock. 3. Links proves that the latest skipblock is part of the skipchain. This Structure could later be moved to cothority/skipchain.

Used in: AddTxResponse, GetProofResponse, calypso.CreateLTS, calypso.DecryptKey, calypso.ReshareLTS, calypso.UpdateValidPeers

message ResolveInstanceID

byzcoin.proto:451

ResolveInstanceID is the request for resolving the instance ID based on the Darc ID and the name.

message ResolvedInstanceID

byzcoin.proto:458

ResolvedInstanceID is the result of the instance ID resolution.

message Spawn

byzcoin.proto:212

Spawn is called upon an existing instance that will spawn a new instance.

Used in: Instruction

message StateChange

byzcoin.proto:263

StateChange is one new state that will be applied to the collection.

Used in: CheckStateChangeValidityResponse, GetInstanceVersionResponse

message StateChangeBody

byzcoin.proto:370

StateChangeBody represents the body part of a state change, which is the part that needs to be serialised and stored in a merkle tree.

Used in: DebugResponseState

message StreamingRequest

byzcoin.proto:289

StreamingRequest is a request asking the service to start streaming blocks on the chain specified by ID.

message StreamingResponse

byzcoin.proto:294

StreamingResponse is the reply (block) that is streamed back to the client

message TxResult

byzcoin.proto:257

TxResult holds a transaction and the result of running it.

Used in: DataBody