Versions in this module Expand all Collapse all v0 v0.1.0 Aug 25, 2018 Changes in this version + const TypeConfirmed + const TypeETH + const TypePending + const TypeShielding + const TypeSpent + const TypeTransfer + const TypeUnshielding + const TypeZETH + type App struct + func NewApp() *App + func (app *App) BtnBindBankClicked() + func (app *App) BtnDeployBankClicked() + func (app *App) BtnGenerateClicked() + func (app *App) BtnShieldClicked() + func (app *App) BtnTransferClicked() + func (app *App) BtnUnshieldClicked() + func (app *App) CheckError(err error) + func (app *App) CloseModal() + func (app *App) CopyToClipboard(content string) + func (app *App) FormShieldSubmitted() + func (app *App) FormTransferSubmitted() + func (app *App) MonitorBlockchain() + func (app *App) MonitorEvents() + func (app *App) OnLoad(event *js.Object) + func (app *App) ShowSnackbar(message string) + func (app *App) StartClock() + func (app *App) StopClock() + type Blockchain struct + func NewBlockchain() *Blockchain + func (blockchain *Blockchain) AddCommitment(commitment string) + func (blockchain *Blockchain) AddNullifier(nullifier string) + func (blockchain *Blockchain) LogEvent(event *ethereum.Event) + type Bytes struct + Bytes []byte + func (m *Bytes) GetBytes() (x []byte) + func (m *Bytes) Marshal() []byte + func (m *Bytes) MarshalToWriter(writer jspb.Writer) + func (m *Bytes) Unmarshal(rawBytes []byte) (*Bytes, error) + func (m *Bytes) UnmarshalFromReader(reader jspb.Reader) *Bytes + type FullNote struct + type JSArray struct + func NewJSArray(headers ...interface{}) *JSArray + func (array *JSArray) UpdateEntry(key string, cells ...JSCell) + type JSCell struct + Type interface{} + Value interface{} + type Note struct + Pk []byte + Rho []byte + Value uint64 + func (m *Note) GetPk() (x []byte) + func (m *Note) GetRho() (x []byte) + func (m *Note) GetValue() (x uint64) + func (m *Note) Marshal() []byte + func (m *Note) MarshalToWriter(writer jspb.Writer) + func (m *Note) Unmarshal(rawBytes []byte) (*Note, error) + func (m *Note) UnmarshalFromReader(reader jspb.Reader) *Note + type Result struct + Message string + Result bool + func (m *Result) GetMessage() (x string) + func (m *Result) GetResult() (x bool) + func (m *Result) Marshal() []byte + func (m *Result) MarshalToWriter(writer jspb.Writer) + func (m *Result) Unmarshal(rawBytes []byte) (*Result, error) + func (m *Result) UnmarshalFromReader(reader jspb.Reader) *Result + type ShieldedInput struct + Rho []byte + Sk []byte + TreeIndex uint64 + TreePath [][]byte + Value uint64 + func (m *ShieldedInput) GetRho() (x []byte) + func (m *ShieldedInput) GetSk() (x []byte) + func (m *ShieldedInput) GetTreeIndex() (x uint64) + func (m *ShieldedInput) GetTreePath() (x [][]byte) + func (m *ShieldedInput) GetValue() (x uint64) + func (m *ShieldedInput) Marshal() []byte + func (m *ShieldedInput) MarshalToWriter(writer jspb.Writer) + func (m *ShieldedInput) Unmarshal(rawBytes []byte) (*ShieldedInput, error) + func (m *ShieldedInput) UnmarshalFromReader(reader jspb.Reader) *ShieldedInput + type ShieldedTransfer struct + Commitments [][]byte + SendNullifiers [][]byte + Snark []byte + SpendNullifiers [][]byte + func (m *ShieldedTransfer) GetCommitments() (x [][]byte) + func (m *ShieldedTransfer) GetSendNullifiers() (x [][]byte) + func (m *ShieldedTransfer) GetSnark() (x []byte) + func (m *ShieldedTransfer) GetSpendNullifiers() (x [][]byte) + func (m *ShieldedTransfer) Marshal() []byte + func (m *ShieldedTransfer) MarshalToWriter(writer jspb.Writer) + func (m *ShieldedTransfer) Unmarshal(rawBytes []byte) (*ShieldedTransfer, error) + func (m *ShieldedTransfer) UnmarshalFromReader(reader jspb.Reader) *ShieldedTransfer + type ShieldedTransferRequest struct + Inputs []*ShieldedInput + Outputs []*Note + func (m *ShieldedTransferRequest) GetInputs() (x []*ShieldedInput) + func (m *ShieldedTransferRequest) GetOutputs() (x []*Note) + func (m *ShieldedTransferRequest) Marshal() []byte + func (m *ShieldedTransferRequest) MarshalToWriter(writer jspb.Writer) + func (m *ShieldedTransferRequest) Unmarshal(rawBytes []byte) (*ShieldedTransferRequest, error) + func (m *ShieldedTransferRequest) UnmarshalFromReader(reader jspb.Reader) *ShieldedTransferRequest + type Shielding struct + Commitment []byte + SendNullifier []byte + Snark []byte + func (m *Shielding) GetCommitment() (x []byte) + func (m *Shielding) GetSendNullifier() (x []byte) + func (m *Shielding) GetSnark() (x []byte) + func (m *Shielding) Marshal() []byte + func (m *Shielding) MarshalToWriter(writer jspb.Writer) + func (m *Shielding) Unmarshal(rawBytes []byte) (*Shielding, error) + func (m *Shielding) UnmarshalFromReader(reader jspb.Reader) *Shielding + type Unshielding struct + SendNullifier []byte + Snark []byte + SpendNullifier []byte + func (m *Unshielding) GetSendNullifier() (x []byte) + func (m *Unshielding) GetSnark() (x []byte) + func (m *Unshielding) GetSpendNullifier() (x []byte) + func (m *Unshielding) Marshal() []byte + func (m *Unshielding) MarshalToWriter(writer jspb.Writer) + func (m *Unshielding) Unmarshal(rawBytes []byte) (*Unshielding, error) + func (m *Unshielding) UnmarshalFromReader(reader jspb.Reader) *Unshielding + type VerifyShieldedTransferRequest struct + ShieldedTransfer *ShieldedTransfer + TreeRoot []byte + func (m *VerifyShieldedTransferRequest) GetShieldedTransfer() (x *ShieldedTransfer) + func (m *VerifyShieldedTransferRequest) GetTreeRoot() (x []byte) + func (m *VerifyShieldedTransferRequest) Marshal() []byte + func (m *VerifyShieldedTransferRequest) MarshalToWriter(writer jspb.Writer) + func (m *VerifyShieldedTransferRequest) Unmarshal(rawBytes []byte) (*VerifyShieldedTransferRequest, error) + func (m *VerifyShieldedTransferRequest) UnmarshalFromReader(reader jspb.Reader) *VerifyShieldedTransferRequest + type VerifyShieldingRequest struct + Shielding *Shielding + Value uint64 + func (m *VerifyShieldingRequest) GetShielding() (x *Shielding) + func (m *VerifyShieldingRequest) GetValue() (x uint64) + func (m *VerifyShieldingRequest) Marshal() []byte + func (m *VerifyShieldingRequest) MarshalToWriter(writer jspb.Writer) + func (m *VerifyShieldingRequest) Unmarshal(rawBytes []byte) (*VerifyShieldingRequest, error) + func (m *VerifyShieldingRequest) UnmarshalFromReader(reader jspb.Reader) *VerifyShieldingRequest + type VerifyUnshieldingRequest struct + Snark []byte + SpendNullifier []byte + TreeRoot []byte + Value uint64 + func (m *VerifyUnshieldingRequest) GetSnark() (x []byte) + func (m *VerifyUnshieldingRequest) GetSpendNullifier() (x []byte) + func (m *VerifyUnshieldingRequest) GetTreeRoot() (x []byte) + func (m *VerifyUnshieldingRequest) GetValue() (x uint64) + func (m *VerifyUnshieldingRequest) Marshal() []byte + func (m *VerifyUnshieldingRequest) MarshalToWriter(writer jspb.Writer) + func (m *VerifyUnshieldingRequest) Unmarshal(rawBytes []byte) (*VerifyUnshieldingRequest, error) + func (m *VerifyUnshieldingRequest) UnmarshalFromReader(reader jspb.Reader) *VerifyUnshieldingRequest + type Void struct + func (m *Void) Marshal() []byte + func (m *Void) MarshalToWriter(writer jspb.Writer) + func (m *Void) Unmarshal(rawBytes []byte) (*Void, error) + func (m *Void) UnmarshalFromReader(reader jspb.Reader) *Void + type Wallet struct + func NewWallet() *Wallet + func (wallet *Wallet) ConfirmNote(commitment string) error + func (wallet *Wallet) GenerateReceiveAddress() (*ZAddress, error) + func (wallet *Wallet) NewShielding(value uint64) (*Shielding, error) + func (wallet *Wallet) NewTransfer(cm1 string, treeIndex1 uint64, treePath1 []string, cm2 string, ...) (*ShieldedTransfer, []*Note, error) + func (wallet *Wallet) NewUnshielding(cm string, treeIndex uint64, treePath []string) (*Unshielding, uint64, error) + func (wallet *Wallet) ReceivedNote(pk, rho string, value uint64) + type ZAddress struct + Pk []byte + Sk []byte + func (m *ZAddress) GetPk() (x []byte) + func (m *ZAddress) GetSk() (x []byte) + func (m *ZAddress) Marshal() []byte + func (m *ZAddress) MarshalToWriter(writer jspb.Writer) + func (m *ZAddress) Unmarshal(rawBytes []byte) (*ZAddress, error) + func (m *ZAddress) UnmarshalFromReader(reader jspb.Reader) *ZAddress + type ZSLBoxClient interface + CreateShieldedTransfer func(ctx context.Context, in *ShieldedTransferRequest, opts ...grpcweb.CallOption) (*ShieldedTransfer, error) + CreateShielding func(ctx context.Context, in *Note, opts ...grpcweb.CallOption) (*Shielding, error) + CreateUnshielding func(ctx context.Context, in *ShieldedInput, opts ...grpcweb.CallOption) (*Unshielding, error) + GetCommitment func(ctx context.Context, in *Note, opts ...grpcweb.CallOption) (*Bytes, error) + GetNewAddress func(ctx context.Context, in *Void, opts ...grpcweb.CallOption) (*ZAddress, error) + GetSendNullifier func(ctx context.Context, in *Note, opts ...grpcweb.CallOption) (*Bytes, error) + GetSpendNullifier func(ctx context.Context, in *ShieldedInput, opts ...grpcweb.CallOption) (*Bytes, error) + Sha256Compress func(ctx context.Context, in *Bytes, opts ...grpcweb.CallOption) (*Bytes, error) + VerifyShieldedTransfer func(ctx context.Context, in *VerifyShieldedTransferRequest, ...) (*Result, error) + VerifyShielding func(ctx context.Context, in *VerifyShieldingRequest, opts ...grpcweb.CallOption) (*Result, error) + VerifyUnshielding func(ctx context.Context, in *VerifyUnshieldingRequest, opts ...grpcweb.CallOption) (*Result, error) + func NewZSLBoxClient(hostname string, opts ...grpcweb.DialOption) ZSLBoxClient