@gala-chain/chaincode ∙ API
API > PublicKeyService
new PublicKeyService():
PublicKeyService
static
private
PK_INDEX_KEY:string
=PK_INDEX_KEY
chaincode/src/services/PublicKeyService.ts:31
static
private
UP_INDEX_KEY:string
=UP_INDEX_KEY
chaincode/src/services/PublicKeyService.ts:32
static
normalizePublicKey: (input
) =>string
=normalizePublicKey
▪ input: string
chaincode/src/services/PublicKeyService.ts:42
static
ensurePublicKeySignatureIsValid(ctx
,userId
,dto
):Promise
<PublicKey
>
Verifies if the data is properly signed. Throws exception instead.
▪ ctx: GalaChainContext
▪ userId: string
▪ dto: ChainCallDTO
chaincode/src/services/PublicKeyService.ts:124
static
getPublicKey(ctx
,userId
):Promise
<undefined
|PublicKey
>
▪ ctx: Context
▪ userId: string
chaincode/src/services/PublicKeyService.ts:96
static
private
getPublicKeyKey(ctx
,userId
):string
▪ ctx: Context
▪ userId: string
chaincode/src/services/PublicKeyService.ts:34
static
getUserProfile(ctx
,ethAddress
):Promise
<undefined
|UserProfile
>
▪ ctx: Context
▪ ethAddress: string
chaincode/src/services/PublicKeyService.ts:65
static
private
getUserProfileKey(ctx
,ethAddress
):string
▪ ctx: Context
▪ ethAddress: string
chaincode/src/services/PublicKeyService.ts:38
static
putPublicKey(ctx
,publicKey
,userId
?):Promise
<void
>
▪ ctx: GalaChainContext
▪ publicKey: string
▪ userId?: string
chaincode/src/services/PublicKeyService.ts:44
static
putUserProfile(ctx
,ethAddress
,userAlias
):Promise
<void
>
▪ ctx: GalaChainContext
▪ ethAddress: string
▪ userAlias: string