mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-28 23:56:43 +00:00
* feat: address system contract consensus issues and comments * fix Euclid header chain verification
21 lines
657 B
Go
21 lines
657 B
Go
package system_contract
|
|
|
|
import (
|
|
"github.com/scroll-tech/go-ethereum/common"
|
|
)
|
|
|
|
// API is a user facing RPC API to allow controlling the signer and voting
|
|
// mechanisms of the proof-of-authority scheme.
|
|
type API struct {
|
|
system_contract *SystemContract
|
|
}
|
|
|
|
// GetSigners retrieves the list of authorized signers at the specified block.
|
|
func (api *API) GetLocalSigner() (common.Address, error) {
|
|
return api.system_contract.localSignerAddress(), nil
|
|
}
|
|
|
|
// GetSigners retrieves the list of authorized signers at the specified block.
|
|
func (api *API) GetAuthorizedSigner() (common.Address, error) {
|
|
return api.system_contract.currentSignerAddressL1(), nil
|
|
}
|