cic-custodial/internal/nonce/nonce.go

12 lines
342 B
Go
Raw Normal View History

2022-11-30 10:51:24 +01:00
package nonce
import "context"
// Noncestore defines how a nonce store should be implemented for any storage backend.
2022-11-30 10:51:24 +01:00
type Noncestore interface {
Peek(context.Context, string) (uint64, error)
Acquire(context.Context, string) (uint64, error)
Return(context.Context, string) error
SetAccountNonce(context.Context, string, uint64) error
2022-11-30 10:51:24 +01:00
}