github.com/mavryk-network/mvgo@v1.19.9/rpc/seednonce.go (about) 1 // Copyright (c) 2020-2021 Blockwatch Data Inc. 2 // Author: alex@blockwatch.cc 3 4 package rpc 5 6 import "github.com/mavryk-network/mvgo/mavryk" 7 8 // Ensure SeedNonce implements the TypedOperation interface. 9 var _ TypedOperation = (*SeedNonce)(nil) 10 11 // SeedNonce represents a seed_nonce_revelation operation 12 type SeedNonce struct { 13 Generic 14 Level int64 `json:"level"` 15 Nonce mavryk.HexBytes `json:"nonce"` 16 } 17 18 // Ensure VdfRevelation implements the TypedOperation interface. 19 var _ TypedOperation = (*VdfRevelation)(nil) 20 21 // VdfRevelation represents a vdf_revelation operation 22 type VdfRevelation struct { 23 Generic 24 Solution []mavryk.HexBytes `json:"solution"` 25 }