AddressBLS
Defined in: packages/iso-filecoin/src/address.js:752
BLS Address f3..
Protocol 3 addresses represent BLS public encryption keys. The payload field contains the BLS public key.
https://spec.filecoin.io/appendix/address/#section-appendix.address.protocol-3-bls
Implements
Section titled “Implements”Extends
Section titled “Extends”Address
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AddressBLS(
payload,network):AddressBLS
Defined in: packages/iso-filecoin/src/address.js:758
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
payload | Uint8Array<ArrayBufferLike> |
network | Network |
Returns
Section titled “Returns”AddressBLS
Overrides
Section titled “Overrides”Address.constructor
Properties
Section titled “Properties”[symbol]
Section titled “[symbol]”[symbol]:
boolean=true
Defined in: packages/iso-filecoin/src/address.js:308
Inherited from
Section titled “Inherited from”Address.[symbol]
network
Section titled “network”network:
Network
Defined in: packages/iso-filecoin/src/address.js:317
Inherited from
Section titled “Inherited from”Address.network
networkPrefix
Section titled “networkPrefix”networkPrefix:
"f"|"t"
Defined in: packages/iso-filecoin/src/address.js:318
Inherited from
Section titled “Inherited from”Address.networkPrefix
payload
Section titled “payload”payload:
Uint8Array<ArrayBufferLike>
Defined in: packages/iso-filecoin/src/address.js:316
Inherited from
Section titled “Inherited from”Address.payload
protocol
Section titled “protocol”protocol:
3
Defined in: packages/iso-filecoin/src/address.js:760
Inherited from
Section titled “Inherited from”Address.protocol
Methods
Section titled “Methods”checksum()
Section titled “checksum()”checksum():
Uint8Array<ArrayBufferLike>
Defined in: packages/iso-filecoin/src/address.js:337
Returns
Section titled “Returns”Uint8Array<ArrayBufferLike>
Inherited from
Section titled “Inherited from”Address.checksum
to0x()
Section titled “to0x()”to0x(
options):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
Section titled “Parameters”| Parameter | Type |
|---|---|
options | AddressRpcSafetyOptions |
Returns
Section titled “Returns”Promise<string>
Inherited from
Section titled “Inherited from”Address.to0x
toBytes()
Section titled “toBytes()”toBytes():
Uint8Array<ArrayBuffer>
Defined in: packages/iso-filecoin/src/address.js:329
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Address.toBytes
toContractDestination()
Section titled “toContractDestination()”toContractDestination():
`0x${string}`
Defined in: packages/iso-filecoin/src/address.js:333
Returns
Section titled “Returns”`0x${string}`
Inherited from
Section titled “Inherited from”Address.toContractDestination
toIdAddress()
Section titled “toIdAddress()”Defined in: packages/iso-filecoin/src/address.js:348
Convert to ID address
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options | AddressRpcSafetyOptions |
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Address.toIdAddress
toString()
Section titled “toString()”toString():
string
Defined in: packages/iso-filecoin/src/address.js:323
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”Address.toString
fromBytes()
Section titled “fromBytes()”
staticfromBytes(bytes,network):AddressBLS
Defined in: packages/iso-filecoin/src/address.js:803
Create address from bytes
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
bytes | Uint8Array<ArrayBufferLike> |
network | Network |
Returns
Section titled “Returns”AddressBLS
fromPublicKey()
Section titled “fromPublicKey()”
staticfromPublicKey(publicKey,network):AddressBLS
Defined in: packages/iso-filecoin/src/address.js:815
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
publicKey | Uint8Array<ArrayBufferLike> |
network | Network |
Returns
Section titled “Returns”AddressBLS
fromString()
Section titled “fromString()”
staticfromString(address):AddressBLS
Defined in: packages/iso-filecoin/src/address.js:771
Create address from string
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
address | string |
Returns
Section titled “Returns”AddressBLS