Skip to content

@gala-chain/chaincodeAPI


API > PublicKeyContract

Class: PublicKeyContract

Contents

Extends

Constructors

new PublicKeyContract()

new PublicKeyContract(): PublicKeyContract

Overrides

GalaContract.constructor

Source

chaincode/src/contracts/PublicKeyContract.ts:55

Methods

GetChaincodeVersion()

GetChaincodeVersion(ctx): Promise\<GalaChainResponse\<string>>

Parameters

ctx: GalaChainContext

Inherited from

GalaContract.GetChaincodeVersion

Source

chaincode/src/contracts/GalaContract.ts:84


GetContractAPI()

GetContractAPI(ctx): Promise\<GalaChainResponse\<ContractAPI>>

Parameters

ctx: GalaChainContext

Inherited from

GalaContract.GetContractAPI

Source

chaincode/src/contracts/GalaContract.ts:93


GetMyProfile()

GetMyProfile(ctx, dto): Promise\<GalaChainResponse\<UserProfile>>

Parameters

ctx: GalaChainContext

dto: GetMyProfileDto

Source

chaincode/src/contracts/PublicKeyContract.ts:98


GetObjectByKey()

GetObjectByKey(ctx, dto): Promise\<GalaChainResponse\<Record\<string, unknown>>>

Parameters

ctx: GalaChainContext

dto: GetObjectDto

Inherited from

GalaContract.GetObjectByKey

Source

chaincode/src/contracts/GalaContract.ts:104


GetObjectHistory()

GetObjectHistory(ctx, dto): Promise\<GalaChainResponse\<Record\<string, unknown>>>

Parameters

ctx: GalaChainContext

dto: GetObjectHistoryDto

Inherited from

GalaContract.GetObjectHistory

Source

chaincode/src/contracts/GalaContract.ts:116


GetPublicKey()

GetPublicKey(ctx, dto): Promise\<GalaChainResponse\<PublicKey>>

Parameters

ctx: GalaChainContext

dto: GetPublicKeyDto

Source

chaincode/src/contracts/PublicKeyContract.ts:180


RegisterEthUser()

RegisterEthUser(ctx, dto): Promise\<GalaChainResponse\<string>>

Parameters

ctx: GalaChainContext

dto: RegisterEthUserDto

Source

chaincode/src/contracts/PublicKeyContract.ts:149


RegisterUser()

RegisterUser(ctx, dto): Promise\<GalaChainResponse\<string>>

Parameters

ctx: GalaChainContext

dto: RegisterUserDto

Source

chaincode/src/contracts/PublicKeyContract.ts:128


UpdatePublicKey()

UpdatePublicKey(ctx, dto): Promise\<GalaChainResponse\<void>>

Parameters

ctx: GalaChainContext

dto: UpdatePublicKeyDto

Source

chaincode/src/contracts/PublicKeyContract.ts:166


VerifySignature()

VerifySignature(ctx, dto): Promise\<GalaChainResponse\<void>>

Parameters

ctx: GalaChainContext

dto: ChainCallDTO

Source

chaincode/src/contracts/PublicKeyContract.ts:201


afterTransaction()

afterTransaction(ctx, result): Promise\<void>

Parameters

ctx: GalaChainContext

result: unknown

Inherited from

GalaContract.afterTransaction

Source

chaincode/src/contracts/GalaContract.ts:62


aroundTransaction()

aroundTransaction(ctx, fn, parameters): Promise\<void>

Parameters

ctx: GalaChainContext

fn: Function

parameters: unknown

Inherited from

GalaContract.aroundTransaction

Source

chaincode/src/contracts/GalaContract.ts:57


beforeTransaction()

beforeTransaction(ctx): Promise\<void>

Parameters

ctx: GalaChainContext

Inherited from

GalaContract.beforeTransaction

Source

chaincode/src/contracts/GalaContract.ts:52


createContext()

createContext(): GalaChainContext

Inherited from

GalaContract.createContext

Source

chaincode/src/contracts/GalaContract.ts:48


getName()

getName(): string

Inherited from

GalaContract.getName

Source

node_modules/fabric-contract-api/types/index.d.ts:33


getVersion()

getVersion(): string

Inherited from

GalaContract.getVersion

Source

chaincode/src/contracts/GalaContract.ts:44


registerUser()

private registerUser(ctx, providedPkHex, ethAddress, userAlias): Promise\<GalaChainResponse\<string>>

Parameters

ctx: GalaChainContext

providedPkHex: string

ethAddress: string

userAlias: string

Source

chaincode/src/contracts/PublicKeyContract.ts:59


unknownTransaction()

unknownTransaction(ctx): Promise\<void>

Parameters

ctx: Context

Inherited from

GalaContract.unknownTransaction

Source

node_modules/fabric-contract-api/types/index.d.ts:30


_isContract()

static _isContract(): boolean

Inherited from

GalaContract._isContract

Source

node_modules/fabric-contract-api/types/index.d.ts:24