cive
Version:
Cive is an interface for the Conflux Core Space, built on Viem.
24 lines (22 loc) • 512 B
text/typescript
import type { OneOf } from './utils.js'
export type ByteArray = Uint8Array
export type Hex = `0x${string}`
export type Hash = `0x${string}`
export type LogTopic = Hex | Hex[] | null
export type SignableMessage =
| string
| {
/** Raw data representation of the message. */
raw: Hex | ByteArray
}
export type SignatureLegacy = {
r: Hex
s: Hex
v: bigint
yParity?: undefined
}
export type Signature = OneOf<SignatureLegacy>
export type CompactSignature = {
r: Hex
yParityAndS: Hex
}