Help us shape the future of Go! Take the 2026 Go Developer Survey

example01

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var A, B string
View Source
var Aval, Bval, X int

Functions

This section is empty.

Types

type SimpleChaincode

type SimpleChaincode struct{}

SimpleChaincode example simple Chaincode implementation

func (*SimpleChaincode) Init

Init callback representing the invocation of a chaincode This chaincode will manage two accounts A and B and will transfer X units from A to B upon invoke

func (*SimpleChaincode) Invoke

Source Files

  • chaincode.go

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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