warpmsg

package
v1.4.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package warpmsg is the single, canonical place in chains that builds, signs, and wraps a single-signer Warp message.

Every VM that emits a cross-chain Warp message — bridgevm reshare gossip, zkvm FHE task callbacks, thresholdvm decryption fulfillments — calls BuildSigned. The build→sign→wrap sequence lives here and nowhere else, so there is exactly one way to turn (networkID, sourceChainID, payload) into a transmittable signed Warp envelope.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSigned

func BuildSigned(signer warp.Signer, networkID uint32, sourceChainID ids.ID, payload []byte) (*warp.Envelope, error)

BuildSigned builds a Warp content Message for (networkID, sourceChainID, payload), signs it with the node's BLS key over the Beam domain, and wraps the signature into a single-signer Envelope.

The signer is the local node's warp.Signer (BLS); it signs BeamSigningBytes(message.ID()). The resulting signature is placed at validator bit index 0 — the single-signer convention every chains VM uses before the receiver aggregates and verifies the Beam BitSetSignature against the canonical validator set (warp.VerifyEnvelope). The returned Envelope is therefore the complete, transmittable, verifiable signed message: env.Bytes() for the wire, env.Message for the authenticated content.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL