Skip to main content

Class: PublicKey

Types.PublicKey

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new PublicKey(...props)

Parameters

NameType
...propsany[]

Inherited from

CircuitValue.constructor

Defined in

lib/circuit_value.ts:43

Properties

isOdd

isOdd: Bool

Defined in

lib/signature.ts:61


x

x: Field

Defined in

lib/signature.ts:60

Methods

assertEquals

assertEquals(x): void

Parameters

NameType
xPublicKey

Returns

void

Inherited from

CircuitValue.assertEquals

Defined in

lib/circuit_value.ts:127


equals

equals(x): Bool

Parameters

NameType
xPublicKey

Returns

Bool

Inherited from

CircuitValue.equals

Defined in

lib/circuit_value.ts:123


isConstant

isConstant(): boolean

Returns

boolean

Inherited from

CircuitValue.isConstant

Defined in

lib/circuit_value.ts:131


isEmpty

isEmpty(): Bool

Returns

Bool

Defined in

lib/signature.ts:94


toBase58

toBase58(): string

Returns

string

Defined in

lib/signature.ts:103


toConstant

toConstant(): PublicKey

Returns

PublicKey

Inherited from

CircuitValue.toConstant

Defined in

lib/circuit_value.ts:119


toFields

toFields(): Field[]

Returns

Field[]

Inherited from

CircuitValue.toFields

Defined in

lib/circuit_value.ts:111


toGroup

toGroup(): Group

Returns

Group

Defined in

lib/signature.ts:63


toJSON

toJSON(): JSONValue

Returns

JSONValue

Inherited from

CircuitValue.toJSON

Defined in

lib/circuit_value.ts:115


check

Static check<T>(this, v): void

Type parameters

NameType
Textends AnyConstructor

Parameters

NameType
thisT
vInstanceType<T>

Returns

void

Inherited from

CircuitValue.check

Defined in

lib/circuit_value.ts:157


empty

Static empty(): PublicKey

Returns

PublicKey

Defined in

lib/signature.ts:90


from

Static from(g): PublicKey

Parameters

NameType
gObject
g.isOddBool
g.xField

Returns

PublicKey

Defined in

lib/signature.ts:86


fromBase58

Static fromBase58(publicKeyBase58): PublicKey

Parameters

NameType
publicKeyBase58string

Returns

PublicKey

Defined in

lib/signature.ts:99


fromGroup

Static fromGroup(__namedParameters): PublicKey

Parameters

NameType
__namedParametersGroup

Returns

PublicKey

Defined in

lib/signature.ts:77


fromJSON

Static fromJSON<T>(this, publicKey): InstanceType<T>

Type parameters

NameType
Textends AnyConstructor

Parameters

NameType
thisT
publicKeystring

Returns

InstanceType<T>

Overrides

CircuitValue.fromJSON

Defined in

lib/signature.ts:113


fromObject

Static fromObject<T>(this, value): InstanceType<T>

Type parameters

NameType
Textends AnyConstructor

Parameters

NameType
thisT
valueNonMethods<InstanceType<T>>

Returns

InstanceType<T>

Inherited from

CircuitValue.fromObject

Defined in

lib/circuit_value.ts:60


fromPrivateKey

Static fromPrivateKey(__namedParameters): PublicKey

Parameters

NameType
__namedParametersPrivateKey

Returns

PublicKey

Defined in

lib/signature.ts:82


ofFields

Static ofFields<T>(this, xs): InstanceType<T>

Type parameters

NameType
Textends AnyConstructor

Parameters

NameType
thisT
xsField[]

Returns

InstanceType<T>

Inherited from

CircuitValue.ofFields

Defined in

lib/circuit_value.ts:135


sizeInFields

Static sizeInFields(): number

Returns

number

Inherited from

CircuitValue.sizeInFields

Defined in

lib/circuit_value.ts:67


toBase58

Static toBase58(publicKey): string

Parameters

NameType
publicKeyPublicKey

Returns

string

Defined in

lib/signature.ts:107


toConstant

Static toConstant<T>(this, t): InstanceType<T>

Type parameters

NameType
Textends AnyConstructor

Parameters

NameType
thisT
tInstanceType<T>

Returns

InstanceType<T>

Inherited from

CircuitValue.toConstant

Defined in

lib/circuit_value.ts:171


toFields

Static toFields<T>(this, v): Field[]

Type parameters

NameType
Textends AnyConstructor

Parameters

NameType
thisT
vInstanceType<T>

Returns

Field[]

Inherited from

CircuitValue.toFields

Defined in

lib/circuit_value.ts:72


toInput

Static toInput<T>(this, v): HashInput

Type parameters

NameType
Textends AnyConstructor

Parameters

NameType
thisT
vInstanceType<T>

Returns

HashInput

Inherited from

CircuitValue.toInput

Defined in

lib/circuit_value.ts:89


toJSON

Static toJSON(publicKey): string

Parameters

NameType
publicKeyPublicKey

Returns

string

Overrides

CircuitValue.toJSON

Defined in

lib/signature.ts:110