@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
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
deleteUserProfile()
static
deleteUserProfile(ctx
,ethAddress
):Promise
\<void
>
Parameters
▪ ctx: GalaChainContext
▪ ethAddress: string
Source
chaincode/src/services/PublicKeyService.ts:65
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:130
getPublicKey()
static
getPublicKey(ctx
,userId
):Promise
\<undefined
|PublicKey
>
Parameters
▪ ctx: Context
▪ userId: string
Source
chaincode/src/services/PublicKeyService.ts:102
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:70
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