qcc/pkg/types/opcode.go
Niko Marmeladkov 07814e5014 Add OpRegister: cert-only registration without PoW
New flow: register -> OpRegister(pubKey) -> OpIdentity(number+cert). Reconnect: OpGetChallenge -> OpAuthCert(cert+sig). PoW eliminated from client flow.
2026-07-01 15:02:58 +03:00

23 lines
474 B
Go

package types
type OpCode byte
const (
OpGetChallenge OpCode = 0x01
OpChallenge OpCode = 0x02
OpSolve OpCode = 0x03
OpIdentity OpCode = 0x04
OpReroll OpCode = 0x05
OpAuthCert OpCode = 0x06
OpRegister OpCode = 0x07
OpDial OpCode = 0x10
OpRing OpCode = 0x11
OpAccept OpCode = 0x12
OpPeerAccept OpCode = 0x13
OpReject OpCode = 0x14
OpEnd OpCode = 0x15
OpPeerEnd OpCode = 0x16
OpError OpCode = 0xFF
)