| 25 | * Base interface for NHP headers |
| 26 | */ |
| 27 | export interface INHPHeader { |
| 28 | readonly size: number; |
| 29 | typeAndPayloadSize: TypeAndPayloadSize; |
| 30 | version: ProtocolVersion; |
| 31 | flags: HeaderFlags; |
| 32 | counter: bigint; |
| 33 | readonly nonce: Uint8Array; |
| 34 | ephemeral: Uint8Array; |
| 35 | // Identity is read-only on this SDK because we don't support IBC mode; |
| 36 | // see NHPHeader.identity comment. |
| 37 | readonly identity: Uint8Array; |
| 38 | static: Uint8Array; |
| 39 | timestamp: Uint8Array; |
| 40 | hmac: Uint8Array; |
| 41 | readonly bytes: Uint8Array; |
| 42 | } |
| 43 | |
| 44 | /** |
| 45 | * Standard NHP Header (240 bytes) for X25519 cipher scheme |
nothing calls this directly
no outgoing calls
no test coverage detected