payment

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Payment - chaincode examples with encrypted state

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// State mappings
	StateMappings = m.StateMappings{}.Add(
		&schema.Payment{},
		m.PKeyAttr(`Type`, `Id`),
		m.List(&schema.PaymentList{})) // state.list() method will return marshaled protobuf schema.PaymentList

	// Event mappings
	EventMappings = m.EventMappings{}.
					Add(&schema.PaymentEvent{})
)

Functions

func NewEncryptOnDemandPaymentCC

func NewEncryptOnDemandPaymentCC() *router.Chaincode

Chaincode WITH schema mapping and encrypting data on demand (if encrypting key is provided in transient map)

func NewEncryptPaymentCC

func NewEncryptPaymentCC() *router.Chaincode

Chaincode with required encrypting (encrypting key must be provided in transient map) WITHOUT mapping

func NewEncryptedPaymentCCWithEncStateContext

func NewEncryptedPaymentCCWithEncStateContext() *router.Chaincode

Chaincode WITH schema mapping and required encrypting

Types

This section is empty.

Directories

Path Synopsis
Package schema is a generated protocol buffer package.
Package schema is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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