payment

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

README

Payment - chaincode examples with encrypted state

Documentation

Index

Constants

View Source
const (
	PaymentGet = `paymentGet`
)

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

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

func NewEncryptPaymentCC

func NewEncryptPaymentCC() *router.Chaincode

NewEncryptPaymentCC 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

Jump to

Keyboard shortcuts

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