fix: error module implementation

This commit is contained in:
mayur.popli
2025-04-03 19:02:42 +05:30
parent 2a0b2c35d3
commit edf82b8e8a

View File

@@ -7,7 +7,6 @@ import (
"errors" "errors"
"fmt" "fmt"
"github.com/beckn/beckn-onix/pkg/model"
"golang.org/x/crypto/blake2b" "golang.org/x/crypto/blake2b"
) )
@@ -50,7 +49,7 @@ func generateSignature(signingString []byte, privateKeyBase64 string) ([]byte, e
} }
if len(privateKeyBytes) != ed25519.SeedSize { if len(privateKeyBytes) != ed25519.SeedSize {
return nil, model.NewBadReqErr(errors.New("invalid seed length")) return nil, errors.New("invalid seed length")
} }
// Generate the private key from the seed // Generate the private key from the seed