mirror of
https://github.com/luxfi/sdk.git
synced 2026-10-30 15:19:23 +00:00
Lux Partners Limited is not the entity behind this work. Every place the old name stood — copyright lines, site footers, brand config, legal and compliance text — now names the company that actually holds it. lux.fund is the exception and is not renamed to match: that site belongs to Lux Assets Management LLC, a different company, and it says so. Two kinds of line were left for a person rather than rewritten. A dated news item recording that Lux Partners Limited was established in the Isle of Man is a historical fact, and renaming it would falsify the record. And a sentence asserting that the company is domiciled in the Isle of Man is a claim about a jurisdiction, not a name — an Inc or an LLC is not an Isle of Man company, so swapping the name there would assert something untrue. Co-authored-by: Hanzo Dev <[email protected]>
29 lines
967 B
Go
29 lines
967 B
Go
// Copyright (C) 2025, Lux Industries Inc All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
// Package txs provides transaction types for validator management.
|
|
package txs
|
|
|
|
import (
|
|
"github.com/luxfi/crypto/bls"
|
|
"github.com/luxfi/ids"
|
|
)
|
|
|
|
// ConvertToL1Validator contains validator information for network-to-L1 conversion
|
|
// As above, so below - validators are unified across all network layers
|
|
type ConvertToL1Validator struct {
|
|
NodeID ids.NodeID `serialize:"true" json:"nodeID"`
|
|
Weight uint64 `serialize:"true" json:"weight"`
|
|
Signer Signer `serialize:"true" json:"signer"`
|
|
}
|
|
|
|
// Backward compatibility aliases
|
|
type ConvertNetToL1Validator = ConvertToL1Validator
|
|
type ConvertNetworkToL1Validator = ConvertToL1Validator
|
|
|
|
// Signer contains the BLS signature for a validator
|
|
type Signer struct {
|
|
PublicKey [bls.PublicKeyLen]byte `serialize:"true" json:"publicKey"`
|
|
Signature [bls.SignatureLen]byte `serialize:"true" json:"signature"`
|
|
}
|