functional simple api

This commit is contained in:
2024-08-23 16:39:20 -05:00
parent f9354196dd
commit ae4f12c159
18 changed files with 234 additions and 216 deletions

View File

@@ -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")
}