ComprehensiveSmartContract

package module
v0.0.0-...-a0ed940 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 3 Imported by: 0

README

hyperledger-chaincodes-go

This is an repo that has all the chaincodes and modules developed by me.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	UserId       string `json:"userId"`
	DocumentId   string `json:"documentId"`
	DocumentData string `json:"documentData"`
}

type SmartContract

type SmartContract struct {
	contractapi.Contract
}

func (*SmartContract) CreateAssert

func (s *SmartContract) CreateAssert(ctx contractapi.TransactionContextInterface, userId string, documentId string, documentData string) string

func (*SmartContract) ReadAsset

func (s *SmartContract) ReadAsset(ctx contractapi.TransactionContextInterface, documentId string) (*Asset, string)

func (*SmartContract) RealAllAsset

Jump to

Keyboard shortcuts

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