rusk

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2020 License: MPL-2.0 Imports: 12 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NoteType_name = map[int32]string{
		0: "TRANSPARENT",
		1: "OBFUSCATED",
	}
	NoteType_value = map[string]int32{
		"TRANSPARENT": 0,
		"OBFUSCATED":  1,
	}
)

Enum value maps for NoteType.

View Source
var File_consensus_proto protoreflect.FileDescriptor
View Source
var File_field_proto protoreflect.FileDescriptor
View Source
var File_transaction_proto protoreflect.FileDescriptor

Functions

func RegisterCryptoServer added in v0.2.0

func RegisterCryptoServer(s *grpc.Server, srv CryptoServer)

func RegisterRuskServer

func RegisterRuskServer(s *grpc.Server, srv RuskServer)

Types

type BidList added in v0.2.0

type BidList struct {
	BidList [][]byte `protobuf:"bytes,1,rep,name=bid_list,json=bidList,proto3" json:"bid_list,omitempty"`
	// contains filtered or unexported fields
}

func (*BidList) Descriptor deprecated added in v0.2.0

func (*BidList) Descriptor() ([]byte, []int)

Deprecated: Use BidList.ProtoReflect.Descriptor instead.

func (*BidList) GetBidList added in v0.2.0

func (x *BidList) GetBidList() [][]byte

func (*BidList) ProtoMessage added in v0.2.0

func (*BidList) ProtoMessage()

func (*BidList) ProtoReflect added in v0.2.0

func (x *BidList) ProtoReflect() protoreflect.Message

func (*BidList) Reset added in v0.2.0

func (x *BidList) Reset()

func (*BidList) String added in v0.2.0

func (x *BidList) String() string

type BidTransaction added in v0.2.0

type BidTransaction struct {
	M                []byte       `protobuf:"bytes,1,opt,name=m,proto3" json:"m,omitempty"`
	Commitment       []byte       `protobuf:"bytes,2,opt,name=commitment,proto3" json:"commitment,omitempty"`
	ExpirationHeight uint64       `protobuf:"fixed64,3,opt,name=expiration_height,json=expirationHeight,proto3" json:"expiration_height,omitempty"`
	Pk               []byte       `protobuf:"bytes,4,opt,name=pk,proto3" json:"pk,omitempty"`
	R                []byte       `protobuf:"bytes,5,opt,name=r,proto3" json:"r,omitempty"`
	Seed             []byte       `protobuf:"bytes,6,opt,name=seed,proto3" json:"seed,omitempty"`
	Tx               *Transaction `protobuf:"bytes,7,opt,name=tx,proto3" json:"tx,omitempty"`
	// contains filtered or unexported fields
}

BidTransaction is the transaction for the Bid used by the Block Generator to create a Score

func (*BidTransaction) Descriptor deprecated added in v0.2.0

func (*BidTransaction) Descriptor() ([]byte, []int)

Deprecated: Use BidTransaction.ProtoReflect.Descriptor instead.

func (*BidTransaction) GetCommitment added in v0.2.0

func (x *BidTransaction) GetCommitment() []byte

func (*BidTransaction) GetExpirationHeight added in v0.2.0

func (x *BidTransaction) GetExpirationHeight() uint64

func (*BidTransaction) GetM added in v0.2.0

func (x *BidTransaction) GetM() []byte

func (*BidTransaction) GetPk added in v0.2.0

func (x *BidTransaction) GetPk() []byte

func (*BidTransaction) GetR added in v0.2.0

func (x *BidTransaction) GetR() []byte

func (*BidTransaction) GetSeed added in v0.2.0

func (x *BidTransaction) GetSeed() []byte

func (*BidTransaction) GetTx added in v0.2.0

func (x *BidTransaction) GetTx() *Transaction

func (*BidTransaction) ProtoMessage added in v0.2.0

func (*BidTransaction) ProtoMessage()

func (*BidTransaction) ProtoReflect added in v0.2.0

func (x *BidTransaction) ProtoReflect() protoreflect.Message

func (*BidTransaction) Reset added in v0.2.0

func (x *BidTransaction) Reset()

func (*BidTransaction) String added in v0.2.0

func (x *BidTransaction) String() string

type BidTransactionRequest added in v0.2.0

type BidTransactionRequest struct {
	K                []byte                 `protobuf:"bytes,1,opt,name=K,proto3" json:"K,omitempty"`
	EdPk             []byte                 `protobuf:"bytes,2,opt,name=ed_pk,json=edPk,proto3" json:"ed_pk,omitempty"`
	Seed             []byte                 `protobuf:"bytes,3,opt,name=seed,proto3" json:"seed,omitempty"`
	ExpirationHeight uint64                 `protobuf:"fixed64,4,opt,name=expiration_height,json=expirationHeight,proto3" json:"expiration_height,omitempty"`
	Tx               *NewTransactionRequest `protobuf:"bytes,5,opt,name=tx,proto3" json:"tx,omitempty"`
	// contains filtered or unexported fields
}

Used to Request the creation of a Bid

func (*BidTransactionRequest) Descriptor deprecated added in v0.2.0

func (*BidTransactionRequest) Descriptor() ([]byte, []int)

Deprecated: Use BidTransactionRequest.ProtoReflect.Descriptor instead.

func (*BidTransactionRequest) GetEdPk added in v0.2.0

func (x *BidTransactionRequest) GetEdPk() []byte

func (*BidTransactionRequest) GetExpirationHeight added in v0.2.0

func (x *BidTransactionRequest) GetExpirationHeight() uint64

func (*BidTransactionRequest) GetK added in v0.2.0

func (x *BidTransactionRequest) GetK() []byte

func (*BidTransactionRequest) GetSeed added in v0.2.0

func (x *BidTransactionRequest) GetSeed() []byte

func (*BidTransactionRequest) GetTx added in v0.2.0

func (*BidTransactionRequest) ProtoMessage added in v0.2.0

func (*BidTransactionRequest) ProtoMessage()

func (*BidTransactionRequest) ProtoReflect added in v0.2.0

func (x *BidTransactionRequest) ProtoReflect() protoreflect.Message

func (*BidTransactionRequest) Reset added in v0.2.0

func (x *BidTransactionRequest) Reset()

func (*BidTransactionRequest) String added in v0.2.0

func (x *BidTransactionRequest) String() string

type BinaryHashRequest added in v0.2.0

type BinaryHashRequest struct {
	Inputs [][]byte `protobuf:"bytes,1,rep,name=inputs,proto3" json:"inputs,omitempty"`
	// contains filtered or unexported fields
}

func (*BinaryHashRequest) Descriptor deprecated added in v0.2.0

func (*BinaryHashRequest) Descriptor() ([]byte, []int)

Deprecated: Use BinaryHashRequest.ProtoReflect.Descriptor instead.

func (*BinaryHashRequest) GetInputs added in v0.2.0

func (x *BinaryHashRequest) GetInputs() [][]byte

func (*BinaryHashRequest) ProtoMessage added in v0.2.0

func (*BinaryHashRequest) ProtoMessage()

func (*BinaryHashRequest) ProtoReflect added in v0.2.0

func (x *BinaryHashRequest) ProtoReflect() protoreflect.Message

func (*BinaryHashRequest) Reset added in v0.2.0

func (x *BinaryHashRequest) Reset()

func (*BinaryHashRequest) String added in v0.2.0

func (x *BinaryHashRequest) String() string

type CompressedPoint

type CompressedPoint struct {
	Y []byte `protobuf:"bytes,1,opt,name=y,proto3" json:"y,omitempty"`
	// contains filtered or unexported fields
}

func (*CompressedPoint) Descriptor deprecated

func (*CompressedPoint) Descriptor() ([]byte, []int)

Deprecated: Use CompressedPoint.ProtoReflect.Descriptor instead.

func (*CompressedPoint) GetY

func (x *CompressedPoint) GetY() []byte

func (*CompressedPoint) ProtoMessage

func (*CompressedPoint) ProtoMessage()

func (*CompressedPoint) ProtoReflect added in v0.2.0

func (x *CompressedPoint) ProtoReflect() protoreflect.Message

func (*CompressedPoint) Reset

func (x *CompressedPoint) Reset()

func (*CompressedPoint) String

func (x *CompressedPoint) String() string

type ContractCallTx added in v0.2.0

type ContractCallTx struct {

	// Types that are assignable to ContractCall:
	//	*ContractCallTx_Tx
	//	*ContractCallTx_Withdraw
	//	*ContractCallTx_Stake
	//	*ContractCallTx_Bid
	//	*ContractCallTx_Slash
	//	*ContractCallTx_Distribute
	//	*ContractCallTx_WithdrawStake
	//	*ContractCallTx_WithdrawBid
	ContractCall isContractCallTx_ContractCall `protobuf_oneof:"contract_call"`
	// contains filtered or unexported fields
}

func (*ContractCallTx) Descriptor deprecated added in v0.2.0

func (*ContractCallTx) Descriptor() ([]byte, []int)

Deprecated: Use ContractCallTx.ProtoReflect.Descriptor instead.

func (*ContractCallTx) GetBid added in v0.2.0

func (x *ContractCallTx) GetBid() *BidTransaction

func (*ContractCallTx) GetContractCall added in v0.2.0

func (m *ContractCallTx) GetContractCall() isContractCallTx_ContractCall

func (*ContractCallTx) GetDistribute added in v0.2.0

func (x *ContractCallTx) GetDistribute() *DistributeTransaction

func (*ContractCallTx) GetSlash added in v0.2.0

func (x *ContractCallTx) GetSlash() *SlashTransaction

func (*ContractCallTx) GetStake added in v0.2.0

func (x *ContractCallTx) GetStake() *StakeTransaction

func (*ContractCallTx) GetTx added in v0.2.0

func (x *ContractCallTx) GetTx() *Transaction

func (*ContractCallTx) GetWithdraw added in v0.2.0

func (x *ContractCallTx) GetWithdraw() *WithdrawFeesTransaction

func (*ContractCallTx) GetWithdrawBid added in v0.2.0

func (x *ContractCallTx) GetWithdrawBid() *WithdrawBidTransaction

func (*ContractCallTx) GetWithdrawStake added in v0.2.0

func (x *ContractCallTx) GetWithdrawStake() *WithdrawStakeTransaction

func (*ContractCallTx) ProtoMessage added in v0.2.0

func (*ContractCallTx) ProtoMessage()

func (*ContractCallTx) ProtoReflect added in v0.2.0

func (x *ContractCallTx) ProtoReflect() protoreflect.Message

func (*ContractCallTx) Reset added in v0.2.0

func (x *ContractCallTx) Reset()

func (*ContractCallTx) String added in v0.2.0

func (x *ContractCallTx) String() string

type ContractCallTx_Bid added in v0.2.0

type ContractCallTx_Bid struct {
	Bid *BidTransaction `protobuf:"bytes,4,opt,name=bid,proto3,oneof"`
}

type ContractCallTx_Distribute added in v0.2.0

type ContractCallTx_Distribute struct {
	Distribute *DistributeTransaction `protobuf:"bytes,6,opt,name=distribute,proto3,oneof"`
}

type ContractCallTx_Slash added in v0.2.0

type ContractCallTx_Slash struct {
	Slash *SlashTransaction `protobuf:"bytes,5,opt,name=slash,proto3,oneof"`
}

type ContractCallTx_Stake added in v0.2.0

type ContractCallTx_Stake struct {
	Stake *StakeTransaction `protobuf:"bytes,3,opt,name=stake,proto3,oneof"`
}

type ContractCallTx_Tx added in v0.2.0

type ContractCallTx_Tx struct {
	Tx *Transaction `protobuf:"bytes,1,opt,name=tx,proto3,oneof"`
}

type ContractCallTx_Withdraw added in v0.2.0

type ContractCallTx_Withdraw struct {
	Withdraw *WithdrawFeesTransaction `protobuf:"bytes,2,opt,name=withdraw,proto3,oneof"`
}

type ContractCallTx_WithdrawBid added in v0.2.0

type ContractCallTx_WithdrawBid struct {
	WithdrawBid *WithdrawBidTransaction `protobuf:"bytes,8,opt,name=withdraw_bid,json=withdrawBid,proto3,oneof"`
}

type ContractCallTx_WithdrawStake added in v0.2.0

type ContractCallTx_WithdrawStake struct {
	WithdrawStake *WithdrawStakeTransaction `protobuf:"bytes,7,opt,name=withdraw_stake,json=withdrawStake,proto3,oneof"`
}

type CryptoClient added in v0.2.0

type CryptoClient interface {
	// Hash performs a Poseidon hashing and returns a scalar
	Hash(ctx context.Context, in *HashRequest, opts ...grpc.CallOption) (*HashResponse, error)
}

CryptoClient is the client API for Crypto service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewCryptoClient added in v0.2.0

func NewCryptoClient(cc grpc.ClientConnInterface) CryptoClient

type CryptoMock added in v0.2.0

type CryptoMock struct{}

func (*CryptoMock) Hash added in v0.2.0

func (m *CryptoMock) Hash(ctx context.Context, req *HashRequest) (*HashResponse, error)

type CryptoServer added in v0.2.0

type CryptoServer interface {
	// Hash performs a Poseidon hashing and returns a scalar
	Hash(context.Context, *HashRequest) (*HashResponse, error)
}

CryptoServer is the server API for Crypto service.

type DecryptedNote

type DecryptedNote struct {
	NoteType        NoteType         `protobuf:"varint,1,opt,name=note_type,json=noteType,proto3,enum=rusk.NoteType" json:"note_type,omitempty"`
	Pos             uint64           `protobuf:"fixed64,2,opt,name=pos,proto3" json:"pos,omitempty"`
	Value           uint64           `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"`
	Nonce           *Nonce           `protobuf:"bytes,4,opt,name=nonce,proto3" json:"nonce,omitempty"`
	RG              *CompressedPoint `protobuf:"bytes,5,opt,name=r_g,json=rG,proto3" json:"r_g,omitempty"`
	PkR             *CompressedPoint `protobuf:"bytes,6,opt,name=pk_r,json=pkR,proto3" json:"pk_r,omitempty"`
	ValueCommitment *Scalar          `protobuf:"bytes,7,opt,name=value_commitment,json=valueCommitment,proto3" json:"value_commitment,omitempty"`
	BlindingFactor  *Scalar          `protobuf:"bytes,8,opt,name=blinding_factor,json=blindingFactor,proto3" json:"blinding_factor,omitempty"`
	// Types that are assignable to RawBlindingFactor:
	//	*DecryptedNote_TransparentBlindingFactor
	//	*DecryptedNote_EncryptedBlindingFactor
	RawBlindingFactor isDecryptedNote_RawBlindingFactor `protobuf_oneof:"rawBlindingFactor"`
	// Types that are assignable to RawValue:
	//	*DecryptedNote_TransparentValue
	//	*DecryptedNote_EncryptedValue
	RawValue isDecryptedNote_RawValue `protobuf_oneof:"rawValue"`
	// contains filtered or unexported fields
}

func (*DecryptedNote) Descriptor deprecated

func (*DecryptedNote) Descriptor() ([]byte, []int)

Deprecated: Use DecryptedNote.ProtoReflect.Descriptor instead.

func (*DecryptedNote) GetBlindingFactor

func (x *DecryptedNote) GetBlindingFactor() *Scalar

func (*DecryptedNote) GetEncryptedBlindingFactor

func (x *DecryptedNote) GetEncryptedBlindingFactor() []byte

func (*DecryptedNote) GetEncryptedValue

func (x *DecryptedNote) GetEncryptedValue() []byte

func (*DecryptedNote) GetNonce

func (x *DecryptedNote) GetNonce() *Nonce

func (*DecryptedNote) GetNoteType

func (x *DecryptedNote) GetNoteType() NoteType

func (*DecryptedNote) GetPkR

func (x *DecryptedNote) GetPkR() *CompressedPoint

func (*DecryptedNote) GetPos

func (x *DecryptedNote) GetPos() uint64

func (*DecryptedNote) GetRG

func (x *DecryptedNote) GetRG() *CompressedPoint

func (*DecryptedNote) GetRawBlindingFactor

func (m *DecryptedNote) GetRawBlindingFactor() isDecryptedNote_RawBlindingFactor

func (*DecryptedNote) GetRawValue

func (m *DecryptedNote) GetRawValue() isDecryptedNote_RawValue

func (*DecryptedNote) GetTransparentBlindingFactor

func (x *DecryptedNote) GetTransparentBlindingFactor() *Scalar

func (*DecryptedNote) GetTransparentValue

func (x *DecryptedNote) GetTransparentValue() uint64

func (*DecryptedNote) GetValue

func (x *DecryptedNote) GetValue() uint64

func (*DecryptedNote) GetValueCommitment

func (x *DecryptedNote) GetValueCommitment() *Scalar

func (*DecryptedNote) ProtoMessage

func (*DecryptedNote) ProtoMessage()

func (*DecryptedNote) ProtoReflect added in v0.2.0

func (x *DecryptedNote) ProtoReflect() protoreflect.Message

func (*DecryptedNote) Reset

func (x *DecryptedNote) Reset()

func (*DecryptedNote) String

func (x *DecryptedNote) String() string

type DecryptedNote_EncryptedBlindingFactor

type DecryptedNote_EncryptedBlindingFactor struct {
	EncryptedBlindingFactor []byte `protobuf:"bytes,10,opt,name=encrypted_blinding_factor,json=encryptedBlindingFactor,proto3,oneof"`
}

type DecryptedNote_EncryptedValue

type DecryptedNote_EncryptedValue struct {
	EncryptedValue []byte `protobuf:"bytes,12,opt,name=encrypted_value,json=encryptedValue,proto3,oneof"`
}

type DecryptedNote_TransparentBlindingFactor

type DecryptedNote_TransparentBlindingFactor struct {
	TransparentBlindingFactor *Scalar `protobuf:"bytes,9,opt,name=transparent_blinding_factor,json=transparentBlindingFactor,proto3,oneof"`
}

type DecryptedNote_TransparentValue

type DecryptedNote_TransparentValue struct {
	TransparentValue uint64 `protobuf:"fixed64,11,opt,name=transparent_value,json=transparentValue,proto3,oneof"`
}

type DistributeTransaction added in v0.2.0

type DistributeTransaction struct {
	ProvisionersAddresses [][]byte     `protobuf:"bytes,1,rep,name=provisioners_addresses,json=provisionersAddresses,proto3" json:"provisioners_addresses,omitempty"`
	BgPk                  *PublicKey   `protobuf:"bytes,2,opt,name=bg_pk,json=bgPk,proto3" json:"bg_pk,omitempty"`
	Tx                    *Transaction `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"`
	// contains filtered or unexported fields
}

Call during block generation

func (*DistributeTransaction) Descriptor deprecated added in v0.2.0

func (*DistributeTransaction) Descriptor() ([]byte, []int)

Deprecated: Use DistributeTransaction.ProtoReflect.Descriptor instead.

func (*DistributeTransaction) GetBgPk added in v0.2.0

func (x *DistributeTransaction) GetBgPk() *PublicKey

func (*DistributeTransaction) GetProvisionersAddresses added in v0.2.0

func (x *DistributeTransaction) GetProvisionersAddresses() [][]byte

func (*DistributeTransaction) GetTx added in v0.2.0

func (x *DistributeTransaction) GetTx() *Transaction

func (*DistributeTransaction) ProtoMessage added in v0.2.0

func (*DistributeTransaction) ProtoMessage()

func (*DistributeTransaction) ProtoReflect added in v0.2.0

func (x *DistributeTransaction) ProtoReflect() protoreflect.Message

func (*DistributeTransaction) Reset added in v0.2.0

func (x *DistributeTransaction) Reset()

func (*DistributeTransaction) String added in v0.2.0

func (x *DistributeTransaction) String() string

type DistributeTransactionRequest added in v0.2.0

type DistributeTransactionRequest struct {
	TotalReward           uint64                 `protobuf:"fixed64,1,opt,name=total_reward,json=totalReward,proto3" json:"total_reward,omitempty"`
	ProvisionersAddresses [][]byte               `protobuf:"bytes,2,rep,name=provisioners_addresses,json=provisionersAddresses,proto3" json:"provisioners_addresses,omitempty"`
	BgPk                  *PublicKey             `protobuf:"bytes,3,opt,name=bg_pk,json=bgPk,proto3" json:"bg_pk,omitempty"`
	Tx                    *NewTransactionRequest `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"`
	// contains filtered or unexported fields
}

Used to request the reward allocation for consensus nodes

func (*DistributeTransactionRequest) Descriptor deprecated added in v0.2.0

func (*DistributeTransactionRequest) Descriptor() ([]byte, []int)

Deprecated: Use DistributeTransactionRequest.ProtoReflect.Descriptor instead.

func (*DistributeTransactionRequest) GetBgPk added in v0.2.0

func (*DistributeTransactionRequest) GetProvisionersAddresses added in v0.2.0

func (x *DistributeTransactionRequest) GetProvisionersAddresses() [][]byte

func (*DistributeTransactionRequest) GetTotalReward added in v0.2.0

func (x *DistributeTransactionRequest) GetTotalReward() uint64

func (*DistributeTransactionRequest) GetTx added in v0.2.0

func (*DistributeTransactionRequest) ProtoMessage added in v0.2.0

func (*DistributeTransactionRequest) ProtoMessage()

func (*DistributeTransactionRequest) ProtoReflect added in v0.2.0

func (*DistributeTransactionRequest) Reset added in v0.2.0

func (x *DistributeTransactionRequest) Reset()

func (*DistributeTransactionRequest) String added in v0.2.0

type EchoRequest

type EchoRequest struct {
	// contains filtered or unexported fields
}

func (*EchoRequest) Descriptor deprecated

func (*EchoRequest) Descriptor() ([]byte, []int)

Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.

func (*EchoRequest) ProtoMessage

func (*EchoRequest) ProtoMessage()

func (*EchoRequest) ProtoReflect added in v0.2.0

func (x *EchoRequest) ProtoReflect() protoreflect.Message

func (*EchoRequest) Reset

func (x *EchoRequest) Reset()

func (*EchoRequest) String

func (x *EchoRequest) String() string

type EchoResponse

type EchoResponse struct {
	// contains filtered or unexported fields
}

func (*EchoResponse) Descriptor deprecated

func (*EchoResponse) Descriptor() ([]byte, []int)

Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead.

func (*EchoResponse) ProtoMessage

func (*EchoResponse) ProtoMessage()

func (*EchoResponse) ProtoReflect added in v0.2.0

func (x *EchoResponse) ProtoReflect() protoreflect.Message

func (*EchoResponse) Reset

func (x *EchoResponse) Reset()

func (*EchoResponse) String

func (x *EchoResponse) String() string

type ExecuteStateTransitionRequest

type ExecuteStateTransitionRequest struct {
	Calls []*ContractCallTx `protobuf:"bytes,1,rep,name=calls,proto3" json:"calls,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecuteStateTransitionRequest) Descriptor deprecated

func (*ExecuteStateTransitionRequest) Descriptor() ([]byte, []int)

Deprecated: Use ExecuteStateTransitionRequest.ProtoReflect.Descriptor instead.

func (*ExecuteStateTransitionRequest) GetCalls added in v0.2.0

func (*ExecuteStateTransitionRequest) ProtoMessage

func (*ExecuteStateTransitionRequest) ProtoMessage()

func (*ExecuteStateTransitionRequest) ProtoReflect added in v0.2.0

func (*ExecuteStateTransitionRequest) Reset

func (x *ExecuteStateTransitionRequest) Reset()

func (*ExecuteStateTransitionRequest) String

type ExecuteStateTransitionResponse

type ExecuteStateTransitionResponse struct {
	Success       bool           `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	CurrentHeight uint64         `protobuf:"fixed64,2,opt,name=current_height,json=currentHeight,proto3" json:"current_height,omitempty"`
	Committee     []*Provisioner `protobuf:"bytes,3,rep,name=committee,proto3" json:"committee,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecuteStateTransitionResponse) Descriptor deprecated

func (*ExecuteStateTransitionResponse) Descriptor() ([]byte, []int)

Deprecated: Use ExecuteStateTransitionResponse.ProtoReflect.Descriptor instead.

func (*ExecuteStateTransitionResponse) GetCommittee added in v0.2.0

func (x *ExecuteStateTransitionResponse) GetCommittee() []*Provisioner

func (*ExecuteStateTransitionResponse) GetCurrentHeight added in v0.2.0

func (x *ExecuteStateTransitionResponse) GetCurrentHeight() uint64

func (*ExecuteStateTransitionResponse) GetSuccess added in v0.2.0

func (x *ExecuteStateTransitionResponse) GetSuccess() bool

func (*ExecuteStateTransitionResponse) ProtoMessage

func (*ExecuteStateTransitionResponse) ProtoMessage()

func (*ExecuteStateTransitionResponse) ProtoReflect added in v0.2.0

func (*ExecuteStateTransitionResponse) Reset

func (x *ExecuteStateTransitionResponse) Reset()

func (*ExecuteStateTransitionResponse) String

type GenerateScoreRequest

type GenerateScoreRequest struct {
	D     []byte `protobuf:"bytes,1,opt,name=d,proto3" json:"d,omitempty"`
	K     []byte `protobuf:"bytes,2,opt,name=k,proto3" json:"k,omitempty"`
	Seed  []byte `protobuf:"bytes,3,opt,name=seed,proto3" json:"seed,omitempty"`
	EdPk  []byte `protobuf:"bytes,4,opt,name=ed_pk,json=edPk,proto3" json:"ed_pk,omitempty"`
	Round uint64 `protobuf:"fixed64,5,opt,name=round,proto3" json:"round,omitempty"`
	Step  uint32 `protobuf:"varint,6,opt,name=step,proto3" json:"step,omitempty"`
	// contains filtered or unexported fields
}

func (*GenerateScoreRequest) Descriptor deprecated

func (*GenerateScoreRequest) Descriptor() ([]byte, []int)

Deprecated: Use GenerateScoreRequest.ProtoReflect.Descriptor instead.

func (*GenerateScoreRequest) GetD

func (x *GenerateScoreRequest) GetD() []byte

func (*GenerateScoreRequest) GetEdPk added in v0.2.0

func (x *GenerateScoreRequest) GetEdPk() []byte

func (*GenerateScoreRequest) GetK

func (x *GenerateScoreRequest) GetK() []byte

func (*GenerateScoreRequest) GetRound added in v0.2.0

func (x *GenerateScoreRequest) GetRound() uint64

func (*GenerateScoreRequest) GetSeed

func (x *GenerateScoreRequest) GetSeed() []byte

func (*GenerateScoreRequest) GetStep added in v0.2.0

func (x *GenerateScoreRequest) GetStep() uint32

func (*GenerateScoreRequest) ProtoMessage

func (*GenerateScoreRequest) ProtoMessage()

func (*GenerateScoreRequest) ProtoReflect added in v0.2.0

func (x *GenerateScoreRequest) ProtoReflect() protoreflect.Message

func (*GenerateScoreRequest) Reset

func (x *GenerateScoreRequest) Reset()

func (*GenerateScoreRequest) String

func (x *GenerateScoreRequest) String() string

type GenerateScoreResponse

type GenerateScoreResponse struct {
	Proof    []byte `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"`
	Score    []byte `protobuf:"bytes,2,opt,name=score,proto3" json:"score,omitempty"`
	Seed     []byte `protobuf:"bytes,3,opt,name=seed,proto3" json:"seed,omitempty"`
	Identity []byte `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"`
	// contains filtered or unexported fields
}

func (*GenerateScoreResponse) Descriptor deprecated

func (*GenerateScoreResponse) Descriptor() ([]byte, []int)

Deprecated: Use GenerateScoreResponse.ProtoReflect.Descriptor instead.

func (*GenerateScoreResponse) GetIdentity added in v0.2.0

func (x *GenerateScoreResponse) GetIdentity() []byte

func (*GenerateScoreResponse) GetProof

func (x *GenerateScoreResponse) GetProof() []byte

func (*GenerateScoreResponse) GetScore

func (x *GenerateScoreResponse) GetScore() []byte

func (*GenerateScoreResponse) GetSeed added in v0.2.0

func (x *GenerateScoreResponse) GetSeed() []byte

func (*GenerateScoreResponse) ProtoMessage

func (*GenerateScoreResponse) ProtoMessage()

func (*GenerateScoreResponse) ProtoReflect added in v0.2.0

func (x *GenerateScoreResponse) ProtoReflect() protoreflect.Message

func (*GenerateScoreResponse) Reset

func (x *GenerateScoreResponse) Reset()

func (*GenerateScoreResponse) String

func (x *GenerateScoreResponse) String() string

type GenerateSecretKeyRequest

type GenerateSecretKeyRequest struct {
	B []byte `protobuf:"bytes,1,opt,name=b,proto3" json:"b,omitempty"`
	// contains filtered or unexported fields
}

func (*GenerateSecretKeyRequest) Descriptor deprecated

func (*GenerateSecretKeyRequest) Descriptor() ([]byte, []int)

Deprecated: Use GenerateSecretKeyRequest.ProtoReflect.Descriptor instead.

func (*GenerateSecretKeyRequest) GetB

func (x *GenerateSecretKeyRequest) GetB() []byte

func (*GenerateSecretKeyRequest) ProtoMessage

func (*GenerateSecretKeyRequest) ProtoMessage()

func (*GenerateSecretKeyRequest) ProtoReflect added in v0.2.0

func (x *GenerateSecretKeyRequest) ProtoReflect() protoreflect.Message

func (*GenerateSecretKeyRequest) Reset

func (x *GenerateSecretKeyRequest) Reset()

func (*GenerateSecretKeyRequest) String

func (x *GenerateSecretKeyRequest) String() string

type GenerateSecretKeyResponse added in v0.2.0

type GenerateSecretKeyResponse struct {
	Sk *SecretKey `protobuf:"bytes,1,opt,name=sk,proto3" json:"sk,omitempty"`
	Vk *ViewKey   `protobuf:"bytes,2,opt,name=vk,proto3" json:"vk,omitempty"`
	Pk *PublicKey `protobuf:"bytes,3,opt,name=pk,proto3" json:"pk,omitempty"`
	// contains filtered or unexported fields
}

func (*GenerateSecretKeyResponse) Descriptor deprecated added in v0.2.0

func (*GenerateSecretKeyResponse) Descriptor() ([]byte, []int)

Deprecated: Use GenerateSecretKeyResponse.ProtoReflect.Descriptor instead.

func (*GenerateSecretKeyResponse) GetPk added in v0.2.0

func (*GenerateSecretKeyResponse) GetSk added in v0.2.0

func (*GenerateSecretKeyResponse) GetVk added in v0.2.0

func (x *GenerateSecretKeyResponse) GetVk() *ViewKey

func (*GenerateSecretKeyResponse) ProtoMessage added in v0.2.0

func (*GenerateSecretKeyResponse) ProtoMessage()

func (*GenerateSecretKeyResponse) ProtoReflect added in v0.2.0

func (*GenerateSecretKeyResponse) Reset added in v0.2.0

func (x *GenerateSecretKeyResponse) Reset()

func (*GenerateSecretKeyResponse) String added in v0.2.0

func (x *GenerateSecretKeyResponse) String() string

type GetBalanceRequest added in v0.2.0

type GetBalanceRequest struct {
	Vk *ViewKey `protobuf:"bytes,1,opt,name=vk,proto3" json:"vk,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBalanceRequest) Descriptor deprecated added in v0.2.0

func (*GetBalanceRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetBalanceRequest.ProtoReflect.Descriptor instead.

func (*GetBalanceRequest) GetVk added in v0.2.0

func (x *GetBalanceRequest) GetVk() *ViewKey

func (*GetBalanceRequest) ProtoMessage added in v0.2.0

func (*GetBalanceRequest) ProtoMessage()

func (*GetBalanceRequest) ProtoReflect added in v0.2.0

func (x *GetBalanceRequest) ProtoReflect() protoreflect.Message

func (*GetBalanceRequest) Reset added in v0.2.0

func (x *GetBalanceRequest) Reset()

func (*GetBalanceRequest) String added in v0.2.0

func (x *GetBalanceRequest) String() string

type GetBalanceResponse added in v0.2.0

type GetBalanceResponse struct {
	Balance uint64 `protobuf:"fixed64,1,opt,name=balance,proto3" json:"balance,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBalanceResponse) Descriptor deprecated added in v0.2.0

func (*GetBalanceResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetBalanceResponse.ProtoReflect.Descriptor instead.

func (*GetBalanceResponse) GetBalance added in v0.2.0

func (x *GetBalanceResponse) GetBalance() uint64

func (*GetBalanceResponse) ProtoMessage added in v0.2.0

func (*GetBalanceResponse) ProtoMessage()

func (*GetBalanceResponse) ProtoReflect added in v0.2.0

func (x *GetBalanceResponse) ProtoReflect() protoreflect.Message

func (*GetBalanceResponse) Reset added in v0.2.0

func (x *GetBalanceResponse) Reset()

func (*GetBalanceResponse) String added in v0.2.0

func (x *GetBalanceResponse) String() string

type HashRequest added in v0.2.0

type HashRequest struct {

	// Types that are assignable to Request:
	//	*HashRequest_BinInputs
	//	*HashRequest_TxInputs
	Request isHashRequest_Request `protobuf_oneof:"request"`
	// contains filtered or unexported fields
}

HashRequest carries the input for the hashing which can be an array of arrays of bytes or a transaction.

func (*HashRequest) Descriptor deprecated added in v0.2.0

func (*HashRequest) Descriptor() ([]byte, []int)

Deprecated: Use HashRequest.ProtoReflect.Descriptor instead.

func (*HashRequest) GetBinInputs added in v0.2.0

func (x *HashRequest) GetBinInputs() *BinaryHashRequest

func (*HashRequest) GetRequest added in v0.2.0

func (m *HashRequest) GetRequest() isHashRequest_Request

func (*HashRequest) GetTxInputs added in v0.2.0

func (x *HashRequest) GetTxInputs() *TransactionHashRequest

func (*HashRequest) ProtoMessage added in v0.2.0

func (*HashRequest) ProtoMessage()

func (*HashRequest) ProtoReflect added in v0.2.0

func (x *HashRequest) ProtoReflect() protoreflect.Message

func (*HashRequest) Reset added in v0.2.0

func (x *HashRequest) Reset()

func (*HashRequest) String added in v0.2.0

func (x *HashRequest) String() string

type HashRequest_BinInputs added in v0.2.0

type HashRequest_BinInputs struct {
	BinInputs *BinaryHashRequest `protobuf:"bytes,1,opt,name=bin_inputs,json=binInputs,proto3,oneof"`
}

type HashRequest_TxInputs added in v0.2.0

type HashRequest_TxInputs struct {
	TxInputs *TransactionHashRequest `protobuf:"bytes,2,opt,name=tx_inputs,json=txInputs,proto3,oneof"`
}

type HashResponse added in v0.2.0

type HashResponse struct {
	Hash *Scalar `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

HashResponse carries the scalar calculated by the hashing function

func (*HashResponse) Descriptor deprecated added in v0.2.0

func (*HashResponse) Descriptor() ([]byte, []int)

Deprecated: Use HashResponse.ProtoReflect.Descriptor instead.

func (*HashResponse) GetHash added in v0.2.0

func (x *HashResponse) GetHash() *Scalar

func (*HashResponse) ProtoMessage added in v0.2.0

func (*HashResponse) ProtoMessage()

func (*HashResponse) ProtoReflect added in v0.2.0

func (x *HashResponse) ProtoReflect() protoreflect.Message

func (*HashResponse) Reset added in v0.2.0

func (x *HashResponse) Reset()

func (*HashResponse) String added in v0.2.0

func (x *HashResponse) String() string

type KeysResponse

type KeysResponse struct {
	Vk *ViewKey   `protobuf:"bytes,1,opt,name=vk,proto3" json:"vk,omitempty"`
	Pk *PublicKey `protobuf:"bytes,2,opt,name=pk,proto3" json:"pk,omitempty"`
	// contains filtered or unexported fields
}

func (*KeysResponse) Descriptor deprecated

func (*KeysResponse) Descriptor() ([]byte, []int)

Deprecated: Use KeysResponse.ProtoReflect.Descriptor instead.

func (*KeysResponse) GetPk

func (x *KeysResponse) GetPk() *PublicKey

func (*KeysResponse) GetVk

func (x *KeysResponse) GetVk() *ViewKey

func (*KeysResponse) ProtoMessage

func (*KeysResponse) ProtoMessage()

func (*KeysResponse) ProtoReflect added in v0.2.0

func (x *KeysResponse) ProtoReflect() protoreflect.Message

func (*KeysResponse) Reset

func (x *KeysResponse) Reset()

func (*KeysResponse) String

func (x *KeysResponse) String() string

type NewTransactionRequest

type NewTransactionRequest struct {
	Sk         *SecretKey `protobuf:"bytes,1,opt,name=sk,proto3" json:"sk,omitempty"`
	Recipient  *PublicKey `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
	Value      uint64     `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"`
	Fee        uint64     `protobuf:"fixed64,4,opt,name=fee,proto3" json:"fee,omitempty"`
	Obfuscated bool       `protobuf:"varint,5,opt,name=obfuscated,proto3" json:"obfuscated,omitempty"`
	// contains filtered or unexported fields
}

Call from CLI directly

func (*NewTransactionRequest) Descriptor deprecated

func (*NewTransactionRequest) Descriptor() ([]byte, []int)

Deprecated: Use NewTransactionRequest.ProtoReflect.Descriptor instead.

func (*NewTransactionRequest) GetFee

func (x *NewTransactionRequest) GetFee() uint64

func (*NewTransactionRequest) GetObfuscated

func (x *NewTransactionRequest) GetObfuscated() bool

func (*NewTransactionRequest) GetRecipient

func (x *NewTransactionRequest) GetRecipient() *PublicKey

func (*NewTransactionRequest) GetSk

func (x *NewTransactionRequest) GetSk() *SecretKey

func (*NewTransactionRequest) GetValue

func (x *NewTransactionRequest) GetValue() uint64

func (*NewTransactionRequest) ProtoMessage

func (*NewTransactionRequest) ProtoMessage()

func (*NewTransactionRequest) ProtoReflect added in v0.2.0

func (x *NewTransactionRequest) ProtoReflect() protoreflect.Message

func (*NewTransactionRequest) Reset

func (x *NewTransactionRequest) Reset()

func (*NewTransactionRequest) String

func (x *NewTransactionRequest) String() string

type Nonce

type Nonce struct {
	Bs []byte `protobuf:"bytes,1,opt,name=bs,proto3" json:"bs,omitempty"`
	// contains filtered or unexported fields
}

func (*Nonce) Descriptor deprecated

func (*Nonce) Descriptor() ([]byte, []int)

Deprecated: Use Nonce.ProtoReflect.Descriptor instead.

func (*Nonce) GetBs

func (x *Nonce) GetBs() []byte

func (*Nonce) ProtoMessage

func (*Nonce) ProtoMessage()

func (*Nonce) ProtoReflect added in v0.2.0

func (x *Nonce) ProtoReflect() protoreflect.Message

func (*Nonce) Reset

func (x *Nonce) Reset()

func (*Nonce) String

func (x *Nonce) String() string

type Note

type Note struct {
	NoteType        NoteType         `protobuf:"varint,1,opt,name=note_type,json=noteType,proto3,enum=rusk.NoteType" json:"note_type,omitempty"`
	Pos             uint64           `protobuf:"fixed64,2,opt,name=pos,proto3" json:"pos,omitempty"`
	Nonce           *Nonce           `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
	RG              *CompressedPoint `protobuf:"bytes,4,opt,name=r_g,json=rG,proto3" json:"r_g,omitempty"`
	PkR             *CompressedPoint `protobuf:"bytes,5,opt,name=pk_r,json=pkR,proto3" json:"pk_r,omitempty"`
	ValueCommitment *Scalar          `protobuf:"bytes,6,opt,name=value_commitment,json=valueCommitment,proto3" json:"value_commitment,omitempty"`
	// Types that are assignable to BlindingFactor:
	//	*Note_TransparentBlindingFactor
	//	*Note_EncryptedBlindingFactor
	BlindingFactor isNote_BlindingFactor `protobuf_oneof:"blinding_factor"`
	// Types that are assignable to Value:
	//	*Note_TransparentValue
	//	*Note_EncryptedValue
	Value isNote_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*Note) Descriptor deprecated

func (*Note) Descriptor() ([]byte, []int)

Deprecated: Use Note.ProtoReflect.Descriptor instead.

func (*Note) GetBlindingFactor

func (m *Note) GetBlindingFactor() isNote_BlindingFactor

func (*Note) GetEncryptedBlindingFactor

func (x *Note) GetEncryptedBlindingFactor() []byte

func (*Note) GetEncryptedValue

func (x *Note) GetEncryptedValue() []byte

func (*Note) GetNonce

func (x *Note) GetNonce() *Nonce

func (*Note) GetNoteType

func (x *Note) GetNoteType() NoteType

func (*Note) GetPkR

func (x *Note) GetPkR() *CompressedPoint

func (*Note) GetPos

func (x *Note) GetPos() uint64

func (*Note) GetRG

func (x *Note) GetRG() *CompressedPoint

func (*Note) GetTransparentBlindingFactor

func (x *Note) GetTransparentBlindingFactor() *Scalar

func (*Note) GetTransparentValue

func (x *Note) GetTransparentValue() uint64

func (*Note) GetValue

func (m *Note) GetValue() isNote_Value

func (*Note) GetValueCommitment

func (x *Note) GetValueCommitment() *Scalar

func (*Note) ProtoMessage

func (*Note) ProtoMessage()

func (*Note) ProtoReflect added in v0.2.0

func (x *Note) ProtoReflect() protoreflect.Message

func (*Note) Reset

func (x *Note) Reset()

func (*Note) String

func (x *Note) String() string

type NoteType

type NoteType int32
const (
	NoteType_TRANSPARENT NoteType = 0
	NoteType_OBFUSCATED  NoteType = 1
)

func (NoteType) Descriptor added in v0.2.0

func (NoteType) Descriptor() protoreflect.EnumDescriptor

func (NoteType) Enum added in v0.2.0

func (x NoteType) Enum() *NoteType

func (NoteType) EnumDescriptor deprecated

func (NoteType) EnumDescriptor() ([]byte, []int)

Deprecated: Use NoteType.Descriptor instead.

func (NoteType) Number added in v0.2.0

func (x NoteType) Number() protoreflect.EnumNumber

func (NoteType) String

func (x NoteType) String() string

func (NoteType) Type added in v0.2.0

type Note_EncryptedBlindingFactor

type Note_EncryptedBlindingFactor struct {
	EncryptedBlindingFactor []byte `protobuf:"bytes,8,opt,name=encrypted_blinding_factor,json=encryptedBlindingFactor,proto3,oneof"`
}

type Note_EncryptedValue

type Note_EncryptedValue struct {
	EncryptedValue []byte `protobuf:"bytes,10,opt,name=encrypted_value,json=encryptedValue,proto3,oneof"`
}

type Note_TransparentBlindingFactor

type Note_TransparentBlindingFactor struct {
	TransparentBlindingFactor *Scalar `protobuf:"bytes,7,opt,name=transparent_blinding_factor,json=transparentBlindingFactor,proto3,oneof"`
}

type Note_TransparentValue

type Note_TransparentValue struct {
	TransparentValue uint64 `protobuf:"fixed64,9,opt,name=transparent_value,json=transparentValue,proto3,oneof"`
}

type Nullifier

type Nullifier struct {
	H *Scalar `protobuf:"bytes,1,opt,name=h,proto3" json:"h,omitempty"`
	// contains filtered or unexported fields
}

func (*Nullifier) Descriptor deprecated

func (*Nullifier) Descriptor() ([]byte, []int)

Deprecated: Use Nullifier.ProtoReflect.Descriptor instead.

func (*Nullifier) GetH

func (x *Nullifier) GetH() *Scalar

func (*Nullifier) ProtoMessage

func (*Nullifier) ProtoMessage()

func (*Nullifier) ProtoReflect added in v0.2.0

func (x *Nullifier) ProtoReflect() protoreflect.Message

func (*Nullifier) Reset

func (x *Nullifier) Reset()

func (*Nullifier) String

func (x *Nullifier) String() string

type OwnedNotesResponse

type OwnedNotesResponse struct {
	Notes []*DecryptedNote `protobuf:"bytes,1,rep,name=notes,proto3" json:"notes,omitempty"`
	// contains filtered or unexported fields
}

Used for scanning unspent input set

func (*OwnedNotesResponse) Descriptor deprecated

func (*OwnedNotesResponse) Descriptor() ([]byte, []int)

Deprecated: Use OwnedNotesResponse.ProtoReflect.Descriptor instead.

func (*OwnedNotesResponse) GetNotes

func (x *OwnedNotesResponse) GetNotes() []*DecryptedNote

func (*OwnedNotesResponse) ProtoMessage

func (*OwnedNotesResponse) ProtoMessage()

func (*OwnedNotesResponse) ProtoReflect added in v0.2.0

func (x *OwnedNotesResponse) ProtoReflect() protoreflect.Message

func (*OwnedNotesResponse) Reset

func (x *OwnedNotesResponse) Reset()

func (*OwnedNotesResponse) String

func (x *OwnedNotesResponse) String() string

type Provisioner added in v0.2.0

type Provisioner struct {
	BlsKey []byte   `protobuf:"bytes,1,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"`
	Stakes []*Stake `protobuf:"bytes,2,rep,name=stakes,proto3" json:"stakes,omitempty"`
	// contains filtered or unexported fields
}

func (*Provisioner) Descriptor deprecated added in v0.2.0

func (*Provisioner) Descriptor() ([]byte, []int)

Deprecated: Use Provisioner.ProtoReflect.Descriptor instead.

func (*Provisioner) GetBlsKey added in v0.2.0

func (x *Provisioner) GetBlsKey() []byte

func (*Provisioner) GetStakes added in v0.2.0

func (x *Provisioner) GetStakes() []*Stake

func (*Provisioner) ProtoMessage added in v0.2.0

func (*Provisioner) ProtoMessage()

func (*Provisioner) ProtoReflect added in v0.2.0

func (x *Provisioner) ProtoReflect() protoreflect.Message

func (*Provisioner) Reset added in v0.2.0

func (x *Provisioner) Reset()

func (*Provisioner) String added in v0.2.0

func (x *Provisioner) String() string

type PublicKey

type PublicKey struct {
	AG *CompressedPoint `protobuf:"bytes,1,opt,name=a_g,json=aG,proto3" json:"a_g,omitempty"`
	BG *CompressedPoint `protobuf:"bytes,2,opt,name=b_g,json=bG,proto3" json:"b_g,omitempty"`
	// contains filtered or unexported fields
}

func (*PublicKey) Descriptor deprecated

func (*PublicKey) Descriptor() ([]byte, []int)

Deprecated: Use PublicKey.ProtoReflect.Descriptor instead.

func (*PublicKey) GetAG

func (x *PublicKey) GetAG() *CompressedPoint

func (*PublicKey) GetBG

func (x *PublicKey) GetBG() *CompressedPoint

func (*PublicKey) ProtoMessage

func (*PublicKey) ProtoMessage()

func (*PublicKey) ProtoReflect added in v0.2.0

func (x *PublicKey) ProtoReflect() protoreflect.Message

func (*PublicKey) Reset

func (x *PublicKey) Reset()

func (*PublicKey) String

func (x *PublicKey) String() string

type RuskClient

type RuskClient interface {
	// Simple echo request
	Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error)
	// Validate a set of contract calls, returning false if at least one of the
	// listed transactions is inconsistent
	ValidateStateTransition(ctx context.Context, in *ValidateStateTransitionRequest, opts ...grpc.CallOption) (*ValidateStateTransitionResponse, error)
	// Execute a set of contract calls, resulting in a mutation of the contract
	// storage.
	ExecuteStateTransition(ctx context.Context, in *ExecuteStateTransitionRequest, opts ...grpc.CallOption) (*ExecuteStateTransitionResponse, error)
	// Generate a proof of blind bid, and a score.
	GenerateScore(ctx context.Context, in *GenerateScoreRequest, opts ...grpc.CallOption) (*GenerateScoreResponse, error)
	// Verify a proof of blind bid, and the associated score
	VerifyScore(ctx context.Context, in *VerifyScoreRequest, opts ...grpc.CallOption) (*VerifyScoreResponse, error)
	// Phoenix stuff
	GenerateSecretKey(ctx context.Context, in *GenerateSecretKeyRequest, opts ...grpc.CallOption) (*GenerateSecretKeyResponse, error)
	Keys(ctx context.Context, in *SecretKey, opts ...grpc.CallOption) (*KeysResponse, error)
	FullScanOwnedNotes(ctx context.Context, in *ViewKey, opts ...grpc.CallOption) (*OwnedNotesResponse, error)
	NewTransaction(ctx context.Context, in *NewTransactionRequest, opts ...grpc.CallOption) (*Transaction, error)
	GetBalance(ctx context.Context, in *GetBalanceRequest, opts ...grpc.CallOption) (*GetBalanceResponse, error)
	VerifyTransaction(ctx context.Context, in *ContractCallTx, opts ...grpc.CallOption) (*VerifyTransactionResponse, error)
	// Stake
	NewStake(ctx context.Context, in *StakeTransactionRequest, opts ...grpc.CallOption) (*StakeTransaction, error)
	VerifyStake(ctx context.Context, in *StakeTransaction, opts ...grpc.CallOption) (*VerifyTransactionResponse, error)
	NewWithdrawStake(ctx context.Context, in *WithdrawStakeTransactionRequest, opts ...grpc.CallOption) (*WithdrawStakeTransaction, error)
	// Bid
	NewBid(ctx context.Context, in *BidTransactionRequest, opts ...grpc.CallOption) (*BidTransaction, error)
	NewWithdrawBid(ctx context.Context, in *WithdrawBidTransactionRequest, opts ...grpc.CallOption) (*WithdrawBidTransaction, error)
	// Distribute
	NewDistribute(ctx context.Context, in *DistributeTransactionRequest, opts ...grpc.CallOption) (*DistributeTransaction, error)
	// WithdrawFee
	NewWithdrawFees(ctx context.Context, in *WithdrawFeesTransactionRequest, opts ...grpc.CallOption) (*WithdrawFeesTransaction, error)
	// Slash
	NewSlash(ctx context.Context, in *SlashTransactionRequest, opts ...grpc.CallOption) (*SlashTransaction, error)
}

RuskClient is the client API for Rusk service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewRuskClient

func NewRuskClient(cc grpc.ClientConnInterface) RuskClient

type RuskMock added in v0.2.0

type RuskMock struct{}

func (*RuskMock) Echo added in v0.2.0

func (m *RuskMock) Echo(ctx context.Context, req *EchoRequest) (*EchoResponse, error)

func (*RuskMock) ExecuteStateTransition added in v0.2.0

func (*RuskMock) FullScanOwnedNotes added in v0.2.0

func (m *RuskMock) FullScanOwnedNotes(ctx context.Context, req *ViewKey) (*OwnedNotesResponse, error)

func (*RuskMock) GenerateScore added in v0.2.0

func (m *RuskMock) GenerateScore(ctx context.Context, req *GenerateScoreRequest) (*GenerateScoreResponse, error)

func (*RuskMock) GenerateSecretKey added in v0.2.0

func (*RuskMock) GetBalance added in v0.2.0

func (m *RuskMock) GetBalance(ctx context.Context, req *GetBalanceRequest) (*GetBalanceResponse, error)

func (*RuskMock) Keys added in v0.2.0

func (m *RuskMock) Keys(ctx context.Context, req *SecretKey) (*KeysResponse, error)

func (*RuskMock) NewBid added in v0.2.0

func (*RuskMock) NewDistribute added in v0.2.0

func (*RuskMock) NewSlash added in v0.2.0

func (*RuskMock) NewStake added in v0.2.0

func (*RuskMock) NewTransaction added in v0.2.0

func (m *RuskMock) NewTransaction(ctx context.Context, req *NewTransactionRequest) (*Transaction, error)

func (*RuskMock) NewWithdrawBid added in v0.2.0

func (*RuskMock) NewWithdrawFees added in v0.2.0

func (*RuskMock) NewWithdrawStake added in v0.2.0

func (*RuskMock) ValidateStateTransition added in v0.2.0

func (*RuskMock) VerifyScore added in v0.2.0

func (m *RuskMock) VerifyScore(ctx context.Context, req *VerifyScoreRequest) (*VerifyScoreResponse, error)

func (*RuskMock) VerifyStake added in v0.2.0

func (*RuskMock) VerifyTransaction added in v0.2.0

func (m *RuskMock) VerifyTransaction(ctx context.Context, req *ContractCallTx) (*VerifyTransactionResponse, error)

type RuskServer

type RuskServer interface {
	// Simple echo request
	Echo(context.Context, *EchoRequest) (*EchoResponse, error)
	// Validate a set of contract calls, returning false if at least one of the
	// listed transactions is inconsistent
	ValidateStateTransition(context.Context, *ValidateStateTransitionRequest) (*ValidateStateTransitionResponse, error)
	// Execute a set of contract calls, resulting in a mutation of the contract
	// storage.
	ExecuteStateTransition(context.Context, *ExecuteStateTransitionRequest) (*ExecuteStateTransitionResponse, error)
	// Generate a proof of blind bid, and a score.
	GenerateScore(context.Context, *GenerateScoreRequest) (*GenerateScoreResponse, error)
	// Verify a proof of blind bid, and the associated score
	VerifyScore(context.Context, *VerifyScoreRequest) (*VerifyScoreResponse, error)
	// Phoenix stuff
	GenerateSecretKey(context.Context, *GenerateSecretKeyRequest) (*GenerateSecretKeyResponse, error)
	Keys(context.Context, *SecretKey) (*KeysResponse, error)
	FullScanOwnedNotes(context.Context, *ViewKey) (*OwnedNotesResponse, error)
	NewTransaction(context.Context, *NewTransactionRequest) (*Transaction, error)
	GetBalance(context.Context, *GetBalanceRequest) (*GetBalanceResponse, error)
	VerifyTransaction(context.Context, *ContractCallTx) (*VerifyTransactionResponse, error)
	// Stake
	NewStake(context.Context, *StakeTransactionRequest) (*StakeTransaction, error)
	VerifyStake(context.Context, *StakeTransaction) (*VerifyTransactionResponse, error)
	NewWithdrawStake(context.Context, *WithdrawStakeTransactionRequest) (*WithdrawStakeTransaction, error)
	// Bid
	NewBid(context.Context, *BidTransactionRequest) (*BidTransaction, error)
	NewWithdrawBid(context.Context, *WithdrawBidTransactionRequest) (*WithdrawBidTransaction, error)
	// Distribute
	NewDistribute(context.Context, *DistributeTransactionRequest) (*DistributeTransaction, error)
	// WithdrawFee
	NewWithdrawFees(context.Context, *WithdrawFeesTransactionRequest) (*WithdrawFeesTransaction, error)
	// Slash
	NewSlash(context.Context, *SlashTransactionRequest) (*SlashTransaction, error)
}

RuskServer is the server API for Rusk service.

type Scalar

type Scalar struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*Scalar) Descriptor deprecated

func (*Scalar) Descriptor() ([]byte, []int)

Deprecated: Use Scalar.ProtoReflect.Descriptor instead.

func (*Scalar) GetData

func (x *Scalar) GetData() []byte

func (*Scalar) ProtoMessage

func (*Scalar) ProtoMessage()

func (*Scalar) ProtoReflect added in v0.2.0

func (x *Scalar) ProtoReflect() protoreflect.Message

func (*Scalar) Reset

func (x *Scalar) Reset()

func (*Scalar) String

func (x *Scalar) String() string

type SecretKey

type SecretKey struct {
	A *Scalar `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"`
	B *Scalar `protobuf:"bytes,2,opt,name=b,proto3" json:"b,omitempty"`
	// contains filtered or unexported fields
}

func (*SecretKey) Descriptor deprecated

func (*SecretKey) Descriptor() ([]byte, []int)

Deprecated: Use SecretKey.ProtoReflect.Descriptor instead.

func (*SecretKey) GetA

func (x *SecretKey) GetA() *Scalar

func (*SecretKey) GetB

func (x *SecretKey) GetB() *Scalar

func (*SecretKey) ProtoMessage

func (*SecretKey) ProtoMessage()

func (*SecretKey) ProtoReflect added in v0.2.0

func (x *SecretKey) ProtoReflect() protoreflect.Message

func (*SecretKey) Reset

func (x *SecretKey) Reset()

func (*SecretKey) String

func (x *SecretKey) String() string

type SlashTransaction added in v0.2.0

type SlashTransaction struct {
	BlsKey    []byte       `protobuf:"bytes,1,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"`
	Step      uint32       `protobuf:"varint,2,opt,name=step,proto3" json:"step,omitempty"`
	Round     uint64       `protobuf:"fixed64,3,opt,name=round,proto3" json:"round,omitempty"`
	FirstMsg  []byte       `protobuf:"bytes,4,opt,name=first_msg,json=firstMsg,proto3" json:"first_msg,omitempty"`
	FirstSig  []byte       `protobuf:"bytes,5,opt,name=first_sig,json=firstSig,proto3" json:"first_sig,omitempty"`
	SecondMsg []byte       `protobuf:"bytes,6,opt,name=second_msg,json=secondMsg,proto3" json:"second_msg,omitempty"`
	SecondSig []byte       `protobuf:"bytes,7,opt,name=second_sig,json=secondSig,proto3" json:"second_sig,omitempty"`
	Tx        *Transaction `protobuf:"bytes,8,opt,name=tx,proto3" json:"tx,omitempty"`
	// contains filtered or unexported fields
}

Call from consensus

func (*SlashTransaction) Descriptor deprecated added in v0.2.0

func (*SlashTransaction) Descriptor() ([]byte, []int)

Deprecated: Use SlashTransaction.ProtoReflect.Descriptor instead.

func (*SlashTransaction) GetBlsKey added in v0.2.0

func (x *SlashTransaction) GetBlsKey() []byte

func (*SlashTransaction) GetFirstMsg added in v0.2.0

func (x *SlashTransaction) GetFirstMsg() []byte

func (*SlashTransaction) GetFirstSig added in v0.2.0

func (x *SlashTransaction) GetFirstSig() []byte

func (*SlashTransaction) GetRound added in v0.2.0

func (x *SlashTransaction) GetRound() uint64

func (*SlashTransaction) GetSecondMsg added in v0.2.0

func (x *SlashTransaction) GetSecondMsg() []byte

func (*SlashTransaction) GetSecondSig added in v0.2.0

func (x *SlashTransaction) GetSecondSig() []byte

func (*SlashTransaction) GetStep added in v0.2.0

func (x *SlashTransaction) GetStep() uint32

func (*SlashTransaction) GetTx added in v0.2.0

func (x *SlashTransaction) GetTx() *Transaction

func (*SlashTransaction) ProtoMessage added in v0.2.0

func (*SlashTransaction) ProtoMessage()

func (*SlashTransaction) ProtoReflect added in v0.2.0

func (x *SlashTransaction) ProtoReflect() protoreflect.Message

func (*SlashTransaction) Reset added in v0.2.0

func (x *SlashTransaction) Reset()

func (*SlashTransaction) String added in v0.2.0

func (x *SlashTransaction) String() string

type SlashTransactionRequest added in v0.2.0

type SlashTransactionRequest struct {
	BlsKey    []byte                 `protobuf:"bytes,1,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"`
	Step      uint32                 `protobuf:"varint,2,opt,name=step,proto3" json:"step,omitempty"`
	Round     uint64                 `protobuf:"fixed64,3,opt,name=round,proto3" json:"round,omitempty"`
	FirstMsg  []byte                 `protobuf:"bytes,4,opt,name=first_msg,json=firstMsg,proto3" json:"first_msg,omitempty"`
	FirstSig  []byte                 `protobuf:"bytes,5,opt,name=first_sig,json=firstSig,proto3" json:"first_sig,omitempty"`
	SecondMsg []byte                 `protobuf:"bytes,6,opt,name=second_msg,json=secondMsg,proto3" json:"second_msg,omitempty"`
	SecondSig []byte                 `protobuf:"bytes,7,opt,name=second_sig,json=secondSig,proto3" json:"second_sig,omitempty"`
	Tx        *NewTransactionRequest `protobuf:"bytes,8,opt,name=tx,proto3" json:"tx,omitempty"`
	// contains filtered or unexported fields
}

Used to request the Slash of a stake

func (*SlashTransactionRequest) Descriptor deprecated added in v0.2.0

func (*SlashTransactionRequest) Descriptor() ([]byte, []int)

Deprecated: Use SlashTransactionRequest.ProtoReflect.Descriptor instead.

func (*SlashTransactionRequest) GetBlsKey added in v0.2.0

func (x *SlashTransactionRequest) GetBlsKey() []byte

func (*SlashTransactionRequest) GetFirstMsg added in v0.2.0

func (x *SlashTransactionRequest) GetFirstMsg() []byte

func (*SlashTransactionRequest) GetFirstSig added in v0.2.0

func (x *SlashTransactionRequest) GetFirstSig() []byte

func (*SlashTransactionRequest) GetRound added in v0.2.0

func (x *SlashTransactionRequest) GetRound() uint64

func (*SlashTransactionRequest) GetSecondMsg added in v0.2.0

func (x *SlashTransactionRequest) GetSecondMsg() []byte

func (*SlashTransactionRequest) GetSecondSig added in v0.2.0

func (x *SlashTransactionRequest) GetSecondSig() []byte

func (*SlashTransactionRequest) GetStep added in v0.2.0

func (x *SlashTransactionRequest) GetStep() uint32

func (*SlashTransactionRequest) GetTx added in v0.2.0

func (*SlashTransactionRequest) ProtoMessage added in v0.2.0

func (*SlashTransactionRequest) ProtoMessage()

func (*SlashTransactionRequest) ProtoReflect added in v0.2.0

func (x *SlashTransactionRequest) ProtoReflect() protoreflect.Message

func (*SlashTransactionRequest) Reset added in v0.2.0

func (x *SlashTransactionRequest) Reset()

func (*SlashTransactionRequest) String added in v0.2.0

func (x *SlashTransactionRequest) String() string

type Stake added in v0.2.0

type Stake struct {
	Amount      uint64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"`
	StartHeight uint64 `protobuf:"fixed64,2,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"`
	EndHeight   uint64 `protobuf:"fixed64,3,opt,name=end_height,json=endHeight,proto3" json:"end_height,omitempty"`
	// contains filtered or unexported fields
}

func (*Stake) Descriptor deprecated added in v0.2.0

func (*Stake) Descriptor() ([]byte, []int)

Deprecated: Use Stake.ProtoReflect.Descriptor instead.

func (*Stake) GetAmount added in v0.2.0

func (x *Stake) GetAmount() uint64

func (*Stake) GetEndHeight added in v0.2.0

func (x *Stake) GetEndHeight() uint64

func (*Stake) GetStartHeight added in v0.2.0

func (x *Stake) GetStartHeight() uint64

func (*Stake) ProtoMessage added in v0.2.0

func (*Stake) ProtoMessage()

func (*Stake) ProtoReflect added in v0.2.0

func (x *Stake) ProtoReflect() protoreflect.Message

func (*Stake) Reset added in v0.2.0

func (x *Stake) Reset()

func (*Stake) String added in v0.2.0

func (x *Stake) String() string

type StakeTransaction added in v0.2.0

type StakeTransaction struct {
	BlsKey           []byte       `protobuf:"bytes,1,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"`
	ExpirationHeight uint64       `protobuf:"fixed64,2,opt,name=expiration_height,json=expirationHeight,proto3" json:"expiration_height,omitempty"`
	Tx               *Transaction `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"`
	// contains filtered or unexported fields
}

StakeTransaction is the transaction for the Stake used by the Provisioners to engage in committees

func (*StakeTransaction) Descriptor deprecated added in v0.2.0

func (*StakeTransaction) Descriptor() ([]byte, []int)

Deprecated: Use StakeTransaction.ProtoReflect.Descriptor instead.

func (*StakeTransaction) GetBlsKey added in v0.2.0

func (x *StakeTransaction) GetBlsKey() []byte

func (*StakeTransaction) GetExpirationHeight added in v0.2.0

func (x *StakeTransaction) GetExpirationHeight() uint64

func (*StakeTransaction) GetTx added in v0.2.0

func (x *StakeTransaction) GetTx() *Transaction

func (*StakeTransaction) ProtoMessage added in v0.2.0

func (*StakeTransaction) ProtoMessage()

func (*StakeTransaction) ProtoReflect added in v0.2.0

func (x *StakeTransaction) ProtoReflect() protoreflect.Message

func (*StakeTransaction) Reset added in v0.2.0

func (x *StakeTransaction) Reset()

func (*StakeTransaction) String added in v0.2.0

func (x *StakeTransaction) String() string

type StakeTransactionRequest added in v0.2.0

type StakeTransactionRequest struct {
	BlsKey           []byte                 `protobuf:"bytes,1,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"`
	ExpirationHeight uint64                 `protobuf:"fixed64,2,opt,name=expiration_height,json=expirationHeight,proto3" json:"expiration_height,omitempty"`
	Tx               *NewTransactionRequest `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"`
	// contains filtered or unexported fields
}

Used to request the creation of a Stake

func (*StakeTransactionRequest) Descriptor deprecated added in v0.2.0

func (*StakeTransactionRequest) Descriptor() ([]byte, []int)

Deprecated: Use StakeTransactionRequest.ProtoReflect.Descriptor instead.

func (*StakeTransactionRequest) GetBlsKey added in v0.2.0

func (x *StakeTransactionRequest) GetBlsKey() []byte

func (*StakeTransactionRequest) GetExpirationHeight added in v0.2.0

func (x *StakeTransactionRequest) GetExpirationHeight() uint64

func (*StakeTransactionRequest) GetTx added in v0.2.0

func (*StakeTransactionRequest) ProtoMessage added in v0.2.0

func (*StakeTransactionRequest) ProtoMessage()

func (*StakeTransactionRequest) ProtoReflect added in v0.2.0

func (x *StakeTransactionRequest) ProtoReflect() protoreflect.Message

func (*StakeTransactionRequest) Reset added in v0.2.0

func (x *StakeTransactionRequest) Reset()

func (*StakeTransactionRequest) String added in v0.2.0

func (x *StakeTransactionRequest) String() string

type Transaction

type Transaction struct {
	Inputs  []*TransactionInput  `protobuf:"bytes,1,rep,name=inputs,proto3" json:"inputs,omitempty"`
	Outputs []*TransactionOutput `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty"`
	Fee     *TransactionOutput   `protobuf:"bytes,3,opt,name=fee,proto3" json:"fee,omitempty"`
	Proof   []byte               `protobuf:"bytes,4,opt,name=proof,proto3" json:"proof,omitempty"`
	// contains filtered or unexported fields
}

func (*Transaction) Descriptor deprecated

func (*Transaction) Descriptor() ([]byte, []int)

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetFee

func (x *Transaction) GetFee() *TransactionOutput

func (*Transaction) GetInputs

func (x *Transaction) GetInputs() []*TransactionInput

func (*Transaction) GetOutputs

func (x *Transaction) GetOutputs() []*TransactionOutput

func (*Transaction) GetProof

func (x *Transaction) GetProof() []byte

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect added in v0.2.0

func (x *Transaction) ProtoReflect() protoreflect.Message

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) String

func (x *Transaction) String() string

type TransactionHashRequest added in v0.2.0

type TransactionHashRequest struct {
	Txs []*Transaction `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactionHashRequest) Descriptor deprecated added in v0.2.0

func (*TransactionHashRequest) Descriptor() ([]byte, []int)

Deprecated: Use TransactionHashRequest.ProtoReflect.Descriptor instead.

func (*TransactionHashRequest) GetTxs added in v0.2.0

func (x *TransactionHashRequest) GetTxs() []*Transaction

func (*TransactionHashRequest) ProtoMessage added in v0.2.0

func (*TransactionHashRequest) ProtoMessage()

func (*TransactionHashRequest) ProtoReflect added in v0.2.0

func (x *TransactionHashRequest) ProtoReflect() protoreflect.Message

func (*TransactionHashRequest) Reset added in v0.2.0

func (x *TransactionHashRequest) Reset()

func (*TransactionHashRequest) String added in v0.2.0

func (x *TransactionHashRequest) String() string

type TransactionInput

type TransactionInput struct {
	Nullifier  *Nullifier `protobuf:"bytes,1,opt,name=nullifier,proto3" json:"nullifier,omitempty"`
	MerkleRoot *Scalar    `protobuf:"bytes,2,opt,name=merkle_root,json=merkleRoot,proto3" json:"merkle_root,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactionInput) Descriptor deprecated

func (*TransactionInput) Descriptor() ([]byte, []int)

Deprecated: Use TransactionInput.ProtoReflect.Descriptor instead.

func (*TransactionInput) GetMerkleRoot

func (x *TransactionInput) GetMerkleRoot() *Scalar

func (*TransactionInput) GetNullifier

func (x *TransactionInput) GetNullifier() *Nullifier

func (*TransactionInput) ProtoMessage

func (*TransactionInput) ProtoMessage()

func (*TransactionInput) ProtoReflect added in v0.2.0

func (x *TransactionInput) ProtoReflect() protoreflect.Message

func (*TransactionInput) Reset

func (x *TransactionInput) Reset()

func (*TransactionInput) String

func (x *TransactionInput) String() string

type TransactionOutput

type TransactionOutput struct {
	Note           *Note      `protobuf:"bytes,1,opt,name=note,proto3" json:"note,omitempty"`
	Pk             *PublicKey `protobuf:"bytes,2,opt,name=pk,proto3" json:"pk,omitempty"`
	Value          uint64     `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"`
	BlindingFactor *Scalar    `protobuf:"bytes,4,opt,name=blinding_factor,json=blindingFactor,proto3" json:"blinding_factor,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactionOutput) Descriptor deprecated

func (*TransactionOutput) Descriptor() ([]byte, []int)

Deprecated: Use TransactionOutput.ProtoReflect.Descriptor instead.

func (*TransactionOutput) GetBlindingFactor

func (x *TransactionOutput) GetBlindingFactor() *Scalar

func (*TransactionOutput) GetNote

func (x *TransactionOutput) GetNote() *Note

func (*TransactionOutput) GetPk

func (x *TransactionOutput) GetPk() *PublicKey

func (*TransactionOutput) GetValue

func (x *TransactionOutput) GetValue() uint64

func (*TransactionOutput) ProtoMessage

func (*TransactionOutput) ProtoMessage()

func (*TransactionOutput) ProtoReflect added in v0.2.0

func (x *TransactionOutput) ProtoReflect() protoreflect.Message

func (*TransactionOutput) Reset

func (x *TransactionOutput) Reset()

func (*TransactionOutput) String

func (x *TransactionOutput) String() string

type UnimplementedCryptoServer added in v0.2.0

type UnimplementedCryptoServer struct {
}

UnimplementedCryptoServer can be embedded to have forward compatible implementations.

func (*UnimplementedCryptoServer) Hash added in v0.2.0

type UnimplementedRuskServer

type UnimplementedRuskServer struct {
}

UnimplementedRuskServer can be embedded to have forward compatible implementations.

func (*UnimplementedRuskServer) Echo

func (*UnimplementedRuskServer) FullScanOwnedNotes

func (*UnimplementedRuskServer) GenerateScore

func (*UnimplementedRuskServer) GenerateSecretKey

func (*UnimplementedRuskServer) GetBalance added in v0.2.0

func (*UnimplementedRuskServer) Keys

func (*UnimplementedRuskServer) NewBid added in v0.2.0

func (*UnimplementedRuskServer) NewDistribute added in v0.2.0

func (*UnimplementedRuskServer) NewSlash added in v0.2.0

func (*UnimplementedRuskServer) NewStake added in v0.2.0

func (*UnimplementedRuskServer) NewTransaction

func (*UnimplementedRuskServer) NewWithdrawBid added in v0.2.0

func (*UnimplementedRuskServer) NewWithdrawFees added in v0.2.0

func (*UnimplementedRuskServer) NewWithdrawStake added in v0.2.0

func (*UnimplementedRuskServer) VerifyScore added in v0.2.0

func (*UnimplementedRuskServer) VerifyStake added in v0.2.0

func (*UnimplementedRuskServer) VerifyTransaction

type ValidateStateTransitionRequest

type ValidateStateTransitionRequest struct {
	Calls         []*ContractCallTx `protobuf:"bytes,1,rep,name=calls,proto3" json:"calls,omitempty"`
	CurrentHeight uint64            `protobuf:"fixed64,2,opt,name=current_height,json=currentHeight,proto3" json:"current_height,omitempty"`
	// contains filtered or unexported fields
}

List of transactions to be validated

func (*ValidateStateTransitionRequest) Descriptor deprecated

func (*ValidateStateTransitionRequest) Descriptor() ([]byte, []int)

Deprecated: Use ValidateStateTransitionRequest.ProtoReflect.Descriptor instead.

func (*ValidateStateTransitionRequest) GetCalls

func (*ValidateStateTransitionRequest) GetCurrentHeight added in v0.2.0

func (x *ValidateStateTransitionRequest) GetCurrentHeight() uint64

func (*ValidateStateTransitionRequest) ProtoMessage

func (*ValidateStateTransitionRequest) ProtoMessage()

func (*ValidateStateTransitionRequest) ProtoReflect added in v0.2.0

func (*ValidateStateTransitionRequest) Reset

func (x *ValidateStateTransitionRequest) Reset()

func (*ValidateStateTransitionRequest) String

type ValidateStateTransitionResponse

type ValidateStateTransitionResponse struct {
	SuccessfulCalls []int32 `protobuf:"varint,1,rep,packed,name=successful_calls,json=successfulCalls,proto3" json:"successful_calls,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateStateTransitionResponse) Descriptor deprecated

func (*ValidateStateTransitionResponse) Descriptor() ([]byte, []int)

Deprecated: Use ValidateStateTransitionResponse.ProtoReflect.Descriptor instead.

func (*ValidateStateTransitionResponse) GetSuccessfulCalls

func (x *ValidateStateTransitionResponse) GetSuccessfulCalls() []int32

func (*ValidateStateTransitionResponse) ProtoMessage

func (*ValidateStateTransitionResponse) ProtoMessage()

func (*ValidateStateTransitionResponse) ProtoReflect added in v0.2.0

func (*ValidateStateTransitionResponse) Reset

func (*ValidateStateTransitionResponse) String

type VerifyScoreRequest added in v0.2.0

type VerifyScoreRequest struct {
	Proof    []byte `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"`
	Score    []byte `protobuf:"bytes,2,opt,name=score,proto3" json:"score,omitempty"`
	Seed     []byte `protobuf:"bytes,3,opt,name=seed,proto3" json:"seed,omitempty"`
	Identity []byte `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"`
	Round    uint64 `protobuf:"fixed64,5,opt,name=round,proto3" json:"round,omitempty"`
	Step     uint32 `protobuf:"varint,6,opt,name=step,proto3" json:"step,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyScoreRequest) Descriptor deprecated added in v0.2.0

func (*VerifyScoreRequest) Descriptor() ([]byte, []int)

Deprecated: Use VerifyScoreRequest.ProtoReflect.Descriptor instead.

func (*VerifyScoreRequest) GetIdentity added in v0.2.0

func (x *VerifyScoreRequest) GetIdentity() []byte

func (*VerifyScoreRequest) GetProof added in v0.2.0

func (x *VerifyScoreRequest) GetProof() []byte

func (*VerifyScoreRequest) GetRound added in v0.2.0

func (x *VerifyScoreRequest) GetRound() uint64

func (*VerifyScoreRequest) GetScore added in v0.2.0

func (x *VerifyScoreRequest) GetScore() []byte

func (*VerifyScoreRequest) GetSeed added in v0.2.0

func (x *VerifyScoreRequest) GetSeed() []byte

func (*VerifyScoreRequest) GetStep added in v0.2.0

func (x *VerifyScoreRequest) GetStep() uint32

func (*VerifyScoreRequest) ProtoMessage added in v0.2.0

func (*VerifyScoreRequest) ProtoMessage()

func (*VerifyScoreRequest) ProtoReflect added in v0.2.0

func (x *VerifyScoreRequest) ProtoReflect() protoreflect.Message

func (*VerifyScoreRequest) Reset added in v0.2.0

func (x *VerifyScoreRequest) Reset()

func (*VerifyScoreRequest) String added in v0.2.0

func (x *VerifyScoreRequest) String() string

type VerifyScoreResponse added in v0.2.0

type VerifyScoreResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyScoreResponse) Descriptor deprecated added in v0.2.0

func (*VerifyScoreResponse) Descriptor() ([]byte, []int)

Deprecated: Use VerifyScoreResponse.ProtoReflect.Descriptor instead.

func (*VerifyScoreResponse) GetSuccess added in v0.2.0

func (x *VerifyScoreResponse) GetSuccess() bool

func (*VerifyScoreResponse) ProtoMessage added in v0.2.0

func (*VerifyScoreResponse) ProtoMessage()

func (*VerifyScoreResponse) ProtoReflect added in v0.2.0

func (x *VerifyScoreResponse) ProtoReflect() protoreflect.Message

func (*VerifyScoreResponse) Reset added in v0.2.0

func (x *VerifyScoreResponse) Reset()

func (*VerifyScoreResponse) String added in v0.2.0

func (x *VerifyScoreResponse) String() string

type VerifyTransactionResponse

type VerifyTransactionResponse struct {
	Verified bool `protobuf:"varint,1,opt,name=verified,proto3" json:"verified,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyTransactionResponse) Descriptor deprecated

func (*VerifyTransactionResponse) Descriptor() ([]byte, []int)

Deprecated: Use VerifyTransactionResponse.ProtoReflect.Descriptor instead.

func (*VerifyTransactionResponse) GetVerified

func (x *VerifyTransactionResponse) GetVerified() bool

func (*VerifyTransactionResponse) ProtoMessage

func (*VerifyTransactionResponse) ProtoMessage()

func (*VerifyTransactionResponse) ProtoReflect added in v0.2.0

func (*VerifyTransactionResponse) Reset

func (x *VerifyTransactionResponse) Reset()

func (*VerifyTransactionResponse) String

func (x *VerifyTransactionResponse) String() string

type ViewKey

type ViewKey struct {
	A  *Scalar          `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"`
	BG *CompressedPoint `protobuf:"bytes,2,opt,name=b_g,json=bG,proto3" json:"b_g,omitempty"`
	// contains filtered or unexported fields
}

func (*ViewKey) Descriptor deprecated

func (*ViewKey) Descriptor() ([]byte, []int)

Deprecated: Use ViewKey.ProtoReflect.Descriptor instead.

func (*ViewKey) GetA

func (x *ViewKey) GetA() *Scalar

func (*ViewKey) GetBG

func (x *ViewKey) GetBG() *CompressedPoint

func (*ViewKey) ProtoMessage

func (*ViewKey) ProtoMessage()

func (*ViewKey) ProtoReflect added in v0.2.0

func (x *ViewKey) ProtoReflect() protoreflect.Message

func (*ViewKey) Reset

func (x *ViewKey) Reset()

func (*ViewKey) String

func (x *ViewKey) String() string

type WithdrawBidTransaction added in v0.2.0

type WithdrawBidTransaction struct {
	Commitment []byte       `protobuf:"bytes,1,opt,name=commitment,proto3" json:"commitment,omitempty"`
	Sig        []byte       `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"`
	EdPk       []byte       `protobuf:"bytes,3,opt,name=ed_pk,json=edPk,proto3" json:"ed_pk,omitempty"`
	Tx         *Transaction `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"`
	// contains filtered or unexported fields
}

WithdrawBidTransaction is the transaction to withdraw a bid

func (*WithdrawBidTransaction) Descriptor deprecated added in v0.2.0

func (*WithdrawBidTransaction) Descriptor() ([]byte, []int)

Deprecated: Use WithdrawBidTransaction.ProtoReflect.Descriptor instead.

func (*WithdrawBidTransaction) GetCommitment added in v0.2.0

func (x *WithdrawBidTransaction) GetCommitment() []byte

func (*WithdrawBidTransaction) GetEdPk added in v0.2.0

func (x *WithdrawBidTransaction) GetEdPk() []byte

func (*WithdrawBidTransaction) GetSig added in v0.2.0

func (x *WithdrawBidTransaction) GetSig() []byte

func (*WithdrawBidTransaction) GetTx added in v0.2.0

func (x *WithdrawBidTransaction) GetTx() *Transaction

func (*WithdrawBidTransaction) ProtoMessage added in v0.2.0

func (*WithdrawBidTransaction) ProtoMessage()

func (*WithdrawBidTransaction) ProtoReflect added in v0.2.0

func (x *WithdrawBidTransaction) ProtoReflect() protoreflect.Message

func (*WithdrawBidTransaction) Reset added in v0.2.0

func (x *WithdrawBidTransaction) Reset()

func (*WithdrawBidTransaction) String added in v0.2.0

func (x *WithdrawBidTransaction) String() string

type WithdrawBidTransactionRequest added in v0.2.0

type WithdrawBidTransactionRequest struct {
	Sig  []byte                 `protobuf:"bytes,1,opt,name=sig,proto3" json:"sig,omitempty"`
	EdPk []byte                 `protobuf:"bytes,2,opt,name=ed_pk,json=edPk,proto3" json:"ed_pk,omitempty"`
	Tx   *NewTransactionRequest `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"`
	// contains filtered or unexported fields
}

Used to request the withdrawal of a Bid

func (*WithdrawBidTransactionRequest) Descriptor deprecated added in v0.2.0

func (*WithdrawBidTransactionRequest) Descriptor() ([]byte, []int)

Deprecated: Use WithdrawBidTransactionRequest.ProtoReflect.Descriptor instead.

func (*WithdrawBidTransactionRequest) GetEdPk added in v0.2.0

func (x *WithdrawBidTransactionRequest) GetEdPk() []byte

func (*WithdrawBidTransactionRequest) GetSig added in v0.2.0

func (x *WithdrawBidTransactionRequest) GetSig() []byte

func (*WithdrawBidTransactionRequest) GetTx added in v0.2.0

func (*WithdrawBidTransactionRequest) ProtoMessage added in v0.2.0

func (*WithdrawBidTransactionRequest) ProtoMessage()

func (*WithdrawBidTransactionRequest) ProtoReflect added in v0.2.0

func (*WithdrawBidTransactionRequest) Reset added in v0.2.0

func (x *WithdrawBidTransactionRequest) Reset()

func (*WithdrawBidTransactionRequest) String added in v0.2.0

type WithdrawFeesTransaction added in v0.2.0

type WithdrawFeesTransaction struct {
	BlsKey []byte       `protobuf:"bytes,1,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"`
	Sig    []byte       `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"`
	Msg    []byte       `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	Tx     *Transaction `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"`
	// contains filtered or unexported fields
}

WithdrawFeesTransaction is the transaction for a Provisioner to withdraw the fees using the smart contract

func (*WithdrawFeesTransaction) Descriptor deprecated added in v0.2.0

func (*WithdrawFeesTransaction) Descriptor() ([]byte, []int)

Deprecated: Use WithdrawFeesTransaction.ProtoReflect.Descriptor instead.

func (*WithdrawFeesTransaction) GetBlsKey added in v0.2.0

func (x *WithdrawFeesTransaction) GetBlsKey() []byte

func (*WithdrawFeesTransaction) GetMsg added in v0.2.0

func (x *WithdrawFeesTransaction) GetMsg() []byte

func (*WithdrawFeesTransaction) GetSig added in v0.2.0

func (x *WithdrawFeesTransaction) GetSig() []byte

func (*WithdrawFeesTransaction) GetTx added in v0.2.0

func (*WithdrawFeesTransaction) ProtoMessage added in v0.2.0

func (*WithdrawFeesTransaction) ProtoMessage()

func (*WithdrawFeesTransaction) ProtoReflect added in v0.2.0

func (x *WithdrawFeesTransaction) ProtoReflect() protoreflect.Message

func (*WithdrawFeesTransaction) Reset added in v0.2.0

func (x *WithdrawFeesTransaction) Reset()

func (*WithdrawFeesTransaction) String added in v0.2.0

func (x *WithdrawFeesTransaction) String() string

type WithdrawFeesTransactionRequest added in v0.2.0

type WithdrawFeesTransactionRequest struct {
	BlsKey []byte                 `protobuf:"bytes,1,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"`
	Sig    []byte                 `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"`
	Msg    []byte                 `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	Tx     *NewTransactionRequest `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"`
	// contains filtered or unexported fields
}

Used to request the withdrawal of fees from a Provisioner

func (*WithdrawFeesTransactionRequest) Descriptor deprecated added in v0.2.0

func (*WithdrawFeesTransactionRequest) Descriptor() ([]byte, []int)

Deprecated: Use WithdrawFeesTransactionRequest.ProtoReflect.Descriptor instead.

func (*WithdrawFeesTransactionRequest) GetBlsKey added in v0.2.0

func (x *WithdrawFeesTransactionRequest) GetBlsKey() []byte

func (*WithdrawFeesTransactionRequest) GetMsg added in v0.2.0

func (x *WithdrawFeesTransactionRequest) GetMsg() []byte

func (*WithdrawFeesTransactionRequest) GetSig added in v0.2.0

func (x *WithdrawFeesTransactionRequest) GetSig() []byte

func (*WithdrawFeesTransactionRequest) GetTx added in v0.2.0

func (*WithdrawFeesTransactionRequest) ProtoMessage added in v0.2.0

func (*WithdrawFeesTransactionRequest) ProtoMessage()

func (*WithdrawFeesTransactionRequest) ProtoReflect added in v0.2.0

func (*WithdrawFeesTransactionRequest) Reset added in v0.2.0

func (x *WithdrawFeesTransactionRequest) Reset()

func (*WithdrawFeesTransactionRequest) String added in v0.2.0

type WithdrawStakeTransaction added in v0.2.0

type WithdrawStakeTransaction struct {
	BlsKey []byte       `protobuf:"bytes,1,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"`
	Sig    []byte       `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"`
	Tx     *Transaction `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"`
	// contains filtered or unexported fields
}

WithdrawStakeTransaction is the transaction to withdraw a stake

func (*WithdrawStakeTransaction) Descriptor deprecated added in v0.2.0

func (*WithdrawStakeTransaction) Descriptor() ([]byte, []int)

Deprecated: Use WithdrawStakeTransaction.ProtoReflect.Descriptor instead.

func (*WithdrawStakeTransaction) GetBlsKey added in v0.2.0

func (x *WithdrawStakeTransaction) GetBlsKey() []byte

func (*WithdrawStakeTransaction) GetSig added in v0.2.0

func (x *WithdrawStakeTransaction) GetSig() []byte

func (*WithdrawStakeTransaction) GetTx added in v0.2.0

func (*WithdrawStakeTransaction) ProtoMessage added in v0.2.0

func (*WithdrawStakeTransaction) ProtoMessage()

func (*WithdrawStakeTransaction) ProtoReflect added in v0.2.0

func (x *WithdrawStakeTransaction) ProtoReflect() protoreflect.Message

func (*WithdrawStakeTransaction) Reset added in v0.2.0

func (x *WithdrawStakeTransaction) Reset()

func (*WithdrawStakeTransaction) String added in v0.2.0

func (x *WithdrawStakeTransaction) String() string

type WithdrawStakeTransactionRequest added in v0.2.0

type WithdrawStakeTransactionRequest struct {
	BlsKey []byte                 `protobuf:"bytes,1,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"`
	Sig    []byte                 `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"`
	Tx     *NewTransactionRequest `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"`
	// contains filtered or unexported fields
}

Used to request the withdrawal of a Stake

func (*WithdrawStakeTransactionRequest) Descriptor deprecated added in v0.2.0

func (*WithdrawStakeTransactionRequest) Descriptor() ([]byte, []int)

Deprecated: Use WithdrawStakeTransactionRequest.ProtoReflect.Descriptor instead.

func (*WithdrawStakeTransactionRequest) GetBlsKey added in v0.2.0

func (x *WithdrawStakeTransactionRequest) GetBlsKey() []byte

func (*WithdrawStakeTransactionRequest) GetSig added in v0.2.0

func (x *WithdrawStakeTransactionRequest) GetSig() []byte

func (*WithdrawStakeTransactionRequest) GetTx added in v0.2.0

func (*WithdrawStakeTransactionRequest) ProtoMessage added in v0.2.0

func (*WithdrawStakeTransactionRequest) ProtoMessage()

func (*WithdrawStakeTransactionRequest) ProtoReflect added in v0.2.0

func (*WithdrawStakeTransactionRequest) Reset added in v0.2.0

func (*WithdrawStakeTransactionRequest) String added in v0.2.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL