Documentation ¶
Index ¶
- func ParseFunction(bs []byte) (string, map[string]string, error)
- type Context
- func (ctx *Context) ArgBytes(n int) ([]byte, error)
- func (ctx *Context) ArgInt64(n int) (int64, error)
- func (ctx *Context) ArgKV(pos int) (string, []byte, error)
- func (ctx *Context) ArgString(n int) (string, error)
- func (ctx *Context) ArgUint64(n int) (uint64, error)
- func (ctx *Context) Args() [][]byte
- func (ctx *Context) ClientCertificate() (*x509.Certificate, error)
- func (ctx *Context) ClientIdentity() (cid.ClientIdentity, error)
- func (ctx *Context) ClientMSPID() (string, error)
- func (ctx *Context) Function() string
- func (ctx *Context) Logger(path ...string) *shim.ChaincodeLogger
- func (ctx *Context) Option(name string) (string, bool)
- func (ctx *Context) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct { Stub shim.ChaincodeStubInterface Store store.Store // contains filtered or unexported fields }
func New ¶
func New(stub shim.ChaincodeStubInterface, name, version string, path ...string) *Context
func (*Context) ClientCertificate ¶
func (ctx *Context) ClientCertificate() (*x509.Certificate, error)
func (*Context) ClientIdentity ¶
func (ctx *Context) ClientIdentity() (cid.ClientIdentity, error)
func (*Context) ClientMSPID ¶
Click to show internal directories.
Click to hide internal directories.