@gala-chain/chaincode ∙ API
API > PublicKeyService
Class: PublicKeyService
Contents
- Constructors
- new PublicKeyService()
- Properties
- PK_INDEX_KEY
- UP_INDEX_KEY
- normalizePublicKey
- Methods
- deleteUserProfile()
- ensurePublicKeySignatureIsValid()
- getPublicKey()
- getPublicKeyKey()
- getUserProfile()
- getUserProfileKey()
- putPublicKey()
- putUserProfile()
Constructors
new PublicKeyService()
new PublicKeyService():
PublicKeyService
Properties
PK_INDEX_KEY
staticprivatePK_INDEX_KEY:string=PK_INDEX_KEY
Source
chaincode/src/services/PublicKeyService.ts:32
UP_INDEX_KEY
staticprivateUP_INDEX_KEY:string=UP_INDEX_KEY
Source
chaincode/src/services/PublicKeyService.ts:33
normalizePublicKey
staticnormalizePublicKey: (input) =>string=normalizePublicKey
Parameters
▪ input: string
Source
chaincode/src/services/PublicKeyService.ts:43
Methods
deleteUserProfile()
staticdeleteUserProfile(ctx,ethAddress):Promise\<void>
Parameters
▪ ctx: GalaChainContext
▪ ethAddress: string
Source
chaincode/src/services/PublicKeyService.ts:66
ensurePublicKeySignatureIsValid()
staticensurePublicKeySignatureIsValid(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:138
getPublicKey()
staticgetPublicKey(ctx,userId):Promise\<undefined|PublicKey>
Parameters
▪ ctx: Context
▪ userId: string
Source
chaincode/src/services/PublicKeyService.ts:110
getPublicKeyKey()
staticprivategetPublicKeyKey(ctx,userId):string
Parameters
▪ ctx: Context
▪ userId: string
Source
chaincode/src/services/PublicKeyService.ts:35
getUserProfile()
staticgetUserProfile(ctx,ethAddress):Promise\<undefined|UserProfile>
Parameters
▪ ctx: Context
▪ ethAddress: string
Source
chaincode/src/services/PublicKeyService.ts:71
getUserProfileKey()
staticprivategetUserProfileKey(ctx,ethAddress):string
Parameters
▪ ctx: Context
▪ ethAddress: string
Source
chaincode/src/services/PublicKeyService.ts:39
putPublicKey()
staticputPublicKey(ctx,publicKey,userId?):Promise\<void>
Parameters
▪ ctx: GalaChainContext
▪ publicKey: string
▪ userId?: string
Source
chaincode/src/services/PublicKeyService.ts:45
putUserProfile()
staticputUserProfile(ctx,ethAddress,userAlias):Promise\<void>
Parameters
▪ ctx: GalaChainContext
▪ ethAddress: string
▪ userAlias: string