bsv.crypto.Signature
scrypt-ts / bsv / crypto / Signature
Class: Signature
Table of contents
Constructors
Properties
- nhashtype
- ALL
- ANYONECANPAY_ALL
- ANYONECANPAY_NONE
- ANYONECANPAY_SINGLE
- NONE
- SIGHASH_ALL
- SIGHASH_ANYONECANPAY
- SIGHASH_FORKID
- SIGHASH_NONE
- SIGHASH_SINGLE
- SINGLE
Methods
Constructors
constructor
• new Signature()
Properties
nhashtype
• nhashtype: number
Defined in
node_modules/bsv/index.d.ts:782
ALL
▪ Static
ALL: number
Defined in
node_modules/bsv/index.d.ts:775
ANYONECANPAY_ALL
▪ Static
ANYONECANPAY_ALL: number
Defined in
node_modules/bsv/index.d.ts:778
ANYONECANPAY_NONE
▪ Static
ANYONECANPAY_NONE: number
Defined in
node_modules/bsv/index.d.ts:779
ANYONECANPAY_SINGLE
▪ Static
ANYONECANPAY_SINGLE: number
Defined in
node_modules/bsv/index.d.ts:780
NONE
▪ Static
NONE: number
Defined in
node_modules/bsv/index.d.ts:776
SIGHASH_ALL
▪ Static
SIGHASH_ALL: number
Defined in
node_modules/bsv/index.d.ts:769
SIGHASH_ANYONECANPAY
▪ Static
SIGHASH_ANYONECANPAY: number
Defined in
node_modules/bsv/index.d.ts:773
SIGHASH_FORKID
▪ Static
SIGHASH_FORKID: number
Defined in
node_modules/bsv/index.d.ts:772
SIGHASH_NONE
▪ Static
SIGHASH_NONE: number
Defined in
node_modules/bsv/index.d.ts:770
SIGHASH_SINGLE
▪ Static
SIGHASH_SINGLE: number
Defined in
node_modules/bsv/index.d.ts:771
SINGLE
▪ Static
SINGLE: number
Defined in
node_modules/bsv/index.d.ts:777
Methods
hasDefinedHashtype
▸ hasDefinedHashtype(): boolean
Returns
boolean
Defined in
node_modules/bsv/index.d.ts:786
hasLowS
▸ hasLowS(): boolean
Returns
boolean
Defined in
node_modules/bsv/index.d.ts:788
toBuffer
▸ toBuffer(): Buffer
Returns
Buffer
Defined in
node_modules/bsv/index.d.ts:784
toDER
▸ toDER(): Buffer
Returns
Buffer
Defined in
node_modules/bsv/index.d.ts:785
toString
▸ toString(): string
Returns
string
Defined in
node_modules/bsv/index.d.ts:783
toTxFormat
▸ toTxFormat(): Buffer
Returns
Buffer
Defined in
node_modules/bsv/index.d.ts:789
fromDER
▸ Static
fromDER(sig
): Signature
Parameters
Name | Type |
---|---|
sig | Buffer |
Returns
Defined in
node_modules/bsv/index.d.ts:766
fromString
▸ Static
fromString(data
): Signature
Parameters
Name | Type |
---|---|
data | string |
Returns
Defined in
node_modules/bsv/index.d.ts:768
fromTxFormat
▸ Static
fromTxFormat(buf
): Signature
Parameters
Name | Type |
---|---|
buf | Buffer |
Returns
Defined in
node_modules/bsv/index.d.ts:767
isTxDER
▸ Static
isTxDER(buf
): boolean
Parameters
Name | Type |
---|---|
buf | Buffer |
Returns
boolean
Defined in
node_modules/bsv/index.d.ts:787