Skip to content

Latest commit

 

History

History
184 lines (99 loc) · 4.48 KB

PublicKeyService.md

File metadata and controls

184 lines (99 loc) · 4.48 KB

@gala-chain/chaincodeAPI


API > PublicKeyService

Class: PublicKeyService

Contents

Constructors

new PublicKeyService()

new PublicKeyService(): PublicKeyService

Properties

PK_INDEX_KEY

static private PK_INDEX_KEY: string = PK_INDEX_KEY

Source

chaincode/src/services/PublicKeyService.ts:31


UP_INDEX_KEY

static private UP_INDEX_KEY: string = UP_INDEX_KEY

Source

chaincode/src/services/PublicKeyService.ts:32


normalizePublicKey

static normalizePublicKey: (input) => string = normalizePublicKey

Parameters

input: string

Source

chaincode/src/services/PublicKeyService.ts:42

Methods

ensurePublicKeySignatureIsValid()

static ensurePublicKeySignatureIsValid(ctx, userId, dto): Promise<PublicKey>

Verifies if the data is properly signed. Throws exception instead.

Parameters

ctx: GalaChainContext

userId: string

dto: ChainCallDTO

Source

chaincode/src/services/PublicKeyService.ts:124


getPublicKey()

static getPublicKey(ctx, userId): Promise<undefined | PublicKey>

Parameters

ctx: Context

userId: string

Source

chaincode/src/services/PublicKeyService.ts:96


getPublicKeyKey()

static private getPublicKeyKey(ctx, userId): string

Parameters

ctx: Context

userId: string

Source

chaincode/src/services/PublicKeyService.ts:34


getUserProfile()

static getUserProfile(ctx, ethAddress): Promise<undefined | UserProfile>

Parameters

ctx: Context

ethAddress: string

Source

chaincode/src/services/PublicKeyService.ts:65


getUserProfileKey()

static private getUserProfileKey(ctx, ethAddress): string

Parameters

ctx: Context

ethAddress: string

Source

chaincode/src/services/PublicKeyService.ts:38


putPublicKey()

static putPublicKey(ctx, publicKey, userId?): Promise<void>

Parameters

ctx: GalaChainContext

publicKey: string

userId?: string

Source

chaincode/src/services/PublicKeyService.ts:44


putUserProfile()

static putUserProfile(ctx, ethAddress, userAlias): Promise<void>

Parameters

ctx: GalaChainContext

ethAddress: string

userAlias: string

Source

chaincode/src/services/PublicKeyService.ts:52