Class: PublicKey
Types.PublicKey
Hierarchy
↳
PublicKey
Table of contents
Constructors
Properties
Methods
- assertEquals
- equals
- isConstant
- isEmpty
- toBase58
- toConstant
- toFields
- toGroup
- toJSON
- check
- empty
- from
- fromBase58
- fromGroup
- fromJSON
- fromObject
- fromPrivateKey
- ofFields
- sizeInFields
- toBase58
- toConstant
- toFields
- toInput
- toJSON
Constructors
constructor
• new PublicKey(...props
)
Parameters
Name | Type |
---|---|
...props | any [] |
Inherited from
Defined in
Properties
isOdd
• isOdd: Bool
Defined in
x
• x: Field
Defined in
Methods
assertEquals
▸ assertEquals(x
): void
Parameters
Name | Type |
---|---|
x | PublicKey |
Returns
void
Inherited from
Defined in
equals
▸ equals(x
): Bool
Parameters
Name | Type |
---|---|
x | PublicKey |
Returns
Inherited from
Defined in
isConstant
▸ isConstant(): boolean
Returns
boolean
Inherited from
Defined in
isEmpty
▸ isEmpty(): Bool
Returns
Defined in
toBase58
▸ toBase58(): string
Returns
string
Defined in
toConstant
▸ toConstant(): PublicKey
Returns
Inherited from
Defined in
toFields
▸ toFields(): Field
[]
Returns
Field
[]
Inherited from
Defined in
toGroup
▸ toGroup(): Group
Returns
Defined in
toJSON
▸ toJSON(): JSONValue
Returns
JSONValue
Inherited from
Defined in
check
▸ Static
check<T
>(this
, v
): void
Type parameters
Name | Type |
---|---|
T | extends AnyConstructor |
Parameters
Name | Type |
---|---|
this | T |
v | InstanceType <T > |
Returns
void
Inherited from
Defined in
empty
▸ Static
empty(): PublicKey
Returns
Defined in
from
▸ Static
from(g
): PublicKey
Parameters
Name | Type |
---|---|
g | Object |
g.isOdd | Bool |
g.x | Field |
Returns
Defined in
fromBase58
▸ Static
fromBase58(publicKeyBase58
): PublicKey
Parameters
Name | Type |
---|---|
publicKeyBase58 | string |
Returns
Defined in
fromGroup
▸ Static
fromGroup(__namedParameters
): PublicKey
Parameters
Name | Type |
---|---|
__namedParameters | Group |
Returns
Defined in
fromJSON
▸ Static
fromJSON<T
>(this
, publicKey
): InstanceType
<T
>
Type parameters
Name | Type |
---|---|
T | extends AnyConstructor |
Parameters
Name | Type |
---|---|
this | T |
publicKey | string |
Returns
InstanceType
<T
>
Overrides
Defined in
fromObject
▸ Static
fromObject<T
>(this
, value
): InstanceType
<T
>
Type parameters
Name | Type |
---|---|
T | extends AnyConstructor |
Parameters
Name | Type |
---|---|
this | T |
value | NonMethods <InstanceType <T >> |
Returns
InstanceType
<T
>
Inherited from
Defined in
fromPrivateKey
▸ Static
fromPrivateKey(__namedParameters
): PublicKey
Parameters
Name | Type |
---|---|
__namedParameters | PrivateKey |
Returns
Defined in
ofFields
▸ Static
ofFields<T
>(this
, xs
): InstanceType
<T
>
Type parameters
Name | Type |
---|---|
T | extends AnyConstructor |
Parameters
Name | Type |
---|---|
this | T |
xs | Field [] |
Returns
InstanceType
<T
>
Inherited from
Defined in
sizeInFields
▸ Static
sizeInFields(): number
Returns
number
Inherited from
Defined in
toBase58
▸ Static
toBase58(publicKey
): string
Parameters
Name | Type |
---|---|
publicKey | PublicKey |
Returns
string
Defined in
toConstant
▸ Static
toConstant<T
>(this
, t
): InstanceType
<T
>
Type parameters
Name | Type |
---|---|
T | extends AnyConstructor |
Parameters
Name | Type |
---|---|
this | T |
t | InstanceType <T > |
Returns
InstanceType
<T
>
Inherited from
Defined in
toFields
▸ Static
toFields<T
>(this
, v
): Field
[]
Type parameters
Name | Type |
---|---|
T | extends AnyConstructor |
Parameters
Name | Type |
---|---|
this | T |
v | InstanceType <T > |
Returns
Field
[]
Inherited from
Defined in
toInput
▸ Static
toInput<T
>(this
, v
): HashInput
Type parameters
Name | Type |
---|---|
T | extends AnyConstructor |
Parameters
Name | Type |
---|---|
this | T |
v | InstanceType <T > |
Returns
HashInput
Inherited from
Defined in
toJSON
▸ Static
toJSON(publicKey
): string
Parameters
Name | Type |
---|---|
publicKey | PublicKey |
Returns
string