mirror of
https://github.com/luxfi/precompile.git
synced 2026-07-27 03:33:45 +00:00
refactor(precompileconfig)!: warp v1.22.0 — AddMessage takes *warp.Message
Track the warp rename Core -> Message. WarpMessageWriter.AddMessage now takes *warp.Message (the cross-chain message); doc comment updated to match.
This commit is contained in:
@@ -22,7 +22,7 @@ require (
|
||||
github.com/luxfi/magnetar v1.2.3
|
||||
github.com/luxfi/runtime v1.1.3
|
||||
github.com/luxfi/threshold v1.9.9
|
||||
github.com/luxfi/warp v1.21.0
|
||||
github.com/luxfi/warp v1.22.0
|
||||
github.com/stretchr/testify v1.11.1
|
||||
github.com/zeebo/blake3 v0.2.4
|
||||
golang.org/x/crypto v0.52.0
|
||||
|
||||
@@ -277,6 +277,8 @@ github.com/luxfi/warp v1.20.0 h1:CyUokvCZ2ZhIpbziKPzCdqdvdMc1V32JpyoZTM2tShs=
|
||||
github.com/luxfi/warp v1.20.0/go.mod h1:4a6ZqXSsQVpm1nl1Q5i6SYPjDcdHvPyEoj4M9pvrIHE=
|
||||
github.com/luxfi/warp v1.21.0 h1:QRgDJuGkp0V3GkmnboHTOKl9Ak0ZHc8DcQqbV4gnCRM=
|
||||
github.com/luxfi/warp v1.21.0/go.mod h1:4a6ZqXSsQVpm1nl1Q5i6SYPjDcdHvPyEoj4M9pvrIHE=
|
||||
github.com/luxfi/warp v1.22.0 h1:S3yiVUaBkHwMkYMAUxHpyVqRe8ZubugCozBgUyRczNA=
|
||||
github.com/luxfi/warp v1.22.0/go.mod h1:4a6ZqXSsQVpm1nl1Q5i6SYPjDcdHvPyEoj4M9pvrIHE=
|
||||
github.com/luxfi/zap v0.8.10 h1:QKNTAsenkke+qQw/QGHVdVZdV48bzbPkoXq5SDCPhs0=
|
||||
github.com/luxfi/zap v0.8.10/go.mod h1:JfqII8VtVQYLLTX6obU1DP9sjGqf9L24vfug5ifh0b8=
|
||||
github.com/luxfi/zapdb v1.10.1 h1:XV3k4UTTKKxUMgbfC7woPXgUEIJd3P5nj2lGTQ88xeE=
|
||||
|
||||
@@ -46,12 +46,12 @@ type Predicater interface {
|
||||
}
|
||||
|
||||
// WarpMessageWriter queues a precompile-emitted cross-chain message for the
|
||||
// validator set to attest. The unsigned subject is the warp.Core: the
|
||||
// canonical value whose digest D = keccak256(DST ‖ zap_c14n(core)) is what the
|
||||
// validator set to attest. The unsigned subject is the warp.Message: the
|
||||
// canonical value whose digest D = keccak256(DST ‖ zap_c14n(message)) is what the
|
||||
// BLS Beam / Corona Pulse / ML-DSA lanes sign. Build one via
|
||||
// warp.NewCore(networkID, sourceChainID, payload).
|
||||
// warp.NewMessage(networkID, sourceChainID, payload).
|
||||
type WarpMessageWriter interface {
|
||||
AddMessage(core *warp.Core) error
|
||||
AddMessage(msg *warp.Message) error
|
||||
}
|
||||
|
||||
// AcceptContext defines the context passed in to a precompileconfig's Accepter
|
||||
|
||||
Reference in New Issue
Block a user