AddressBLS
Defined in: packages/iso-filecoin/src/address.js:750
BLS Address f3..
Protocol 3 addresses represent BLS public encryption keys. The payload field contains the BLS public key.
See
https://spec.filecoin.io/appendix/address/#section-appendix.address.protocol-3-bls
Implements
Extends
Constructors
new AddressBLS()
new AddressBLS(payload: Uint8Array<ArrayBufferLike>, network: Network): AddressBLS
Defined in: packages/iso-filecoin/src/address.js:756
Parameters
Parameter | Type | Description |
---|---|---|
payload | Uint8Array <ArrayBufferLike > | |
network | Network |
Returns
Overrides
Methods
checksum()
checksum(): Uint8Array<ArrayBufferLike>
Defined in: packages/iso-filecoin/src/address.js:337
Returns
Uint8Array
<ArrayBufferLike
>
Inherited from
to0x()
to0x(options: AddressRpcSafetyOptions): Promise<string>
Defined in: packages/iso-filecoin/src/address.js:399
Converts any address to a 0x address, either id masked address or eth address depending on the address type. Delegated addresses convert to eth address and f1, f2, f3 convert to id masked address and f0 depends on the underline address type
Parameters
Parameter | Type | Description |
---|---|---|
options | AddressRpcSafetyOptions |
Returns
Promise
<string
>
Inherited from
toBytes()
toBytes(): Uint8Array<ArrayBuffer>
Defined in: packages/iso-filecoin/src/address.js:329
Returns
Inherited from
toContractDestination()
toContractDestination(): `0x${string}`
Defined in: packages/iso-filecoin/src/address.js:333
Returns
`0x${string}`
Inherited from
toIdAddress()
toIdAddress(options: AddressRpcSafetyOptions): Promise<AddressId>
Defined in: packages/iso-filecoin/src/address.js:348
Convert to ID address
Parameters
Parameter | Type | Description |
---|---|---|
options | AddressRpcSafetyOptions |
Returns
Inherited from
toString()
toString(): string
Defined in: packages/iso-filecoin/src/address.js:323
Returns
string
Inherited from
fromBytes()
static fromBytes(bytes: Uint8Array<ArrayBufferLike>, network: Network): AddressBLS
Defined in: packages/iso-filecoin/src/address.js:801
Create address from bytes
Parameters
Parameter | Type | Description |
---|---|---|
bytes | Uint8Array <ArrayBufferLike > | |
network | Network |
Returns
fromPublicKey()
static fromPublicKey(publicKey: Uint8Array<ArrayBufferLike>, network: Network): AddressBLS
Defined in: packages/iso-filecoin/src/address.js:813
Parameters
Parameter | Type | Description |
---|---|---|
publicKey | Uint8Array <ArrayBufferLike > | |
network | Network |
Returns
fromString()
static fromString(address: string): AddressBLS
Defined in: packages/iso-filecoin/src/address.js:769
Create address from string
Parameters
Parameter | Type | Description |
---|---|---|
address | string |
Returns
Properties
[symbol]
[symbol]: boolean = true;
Defined in: packages/iso-filecoin/src/address.js:308
Inherited from
network
network: Network;
Defined in: packages/iso-filecoin/src/address.js:317
Inherited from
networkPrefix
networkPrefix: "f" | "t";
Defined in: packages/iso-filecoin/src/address.js:318
Inherited from
payload
payload: Uint8Array<ArrayBufferLike>;
Defined in: packages/iso-filecoin/src/address.js:316
Inherited from
protocol
protocol: 3;
Defined in: packages/iso-filecoin/src/address.js:758