Module: src
Classes
Interfaces
Functions
genSignature
▸ genSignature(unirepAddress
, attester
, epochLength
, chainId
): Promise
<string
>
Generate attester sign up signature
Parameters
Name | Type | Description |
---|---|---|
unirepAddress | string | The address of UniRep smart contract |
attester | Signer | Wallet | The address of the attester |
epochLength | number | Epoch length specified by the attester |
chainId | number | bigint | The current chain id of the UniRep smart contract |
Returns
Promise
<string
>
An sign up signature for the attester
Defined in
packages/contracts/src/index.ts:26
getUnirepContract
▸ getUnirepContract(address
, signerOrProvider
): Unirep
Get Unirep smart contract from a given address
Parameters
Name | Type | Description |
---|---|---|
address | string | The address if the Unirep contract |
signerOrProvider | Provider | Signer | The signer or provider that will connect to the Unirep smart contract |
Returns
The Unirep smart contract