functional simple api
This commit is contained in:
@@ -11,10 +11,10 @@ import (
|
||||
type CustomerAttributes struct {
|
||||
AttrVals []uint64
|
||||
SetVals []uint64
|
||||
KeypadSize model.KeypadSize
|
||||
KeypadSize m.KeypadSize
|
||||
}
|
||||
|
||||
func NewCustomerAttributes(keypadSize model.KeypadSize) (*CustomerAttributes, error) {
|
||||
func NewCustomerAttributes(keypadSize m.KeypadSize) (*CustomerAttributes, error) {
|
||||
if keypadSize.IsDispersable() {
|
||||
return nil, errors.New("number of keys must be less than the number of attributes per key to be dispersion resistant")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user