payment

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: MIT Imports: 7 Imported by: 0

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