|
@ -3,7 +3,6 @@ package nano |
|
|
import ( |
|
|
import ( |
|
|
"bytes" |
|
|
"bytes" |
|
|
"crypto/sha512" |
|
|
"crypto/sha512" |
|
|
"fmt" |
|
|
|
|
|
|
|
|
|
|
|
"github.com/pkg/errors" |
|
|
"github.com/pkg/errors" |
|
|
|
|
|
|
|
@ -55,7 +54,6 @@ func parseDigest(resp []byte) (key, sig []byte, err error) { |
|
|
if !bytes.Equal(separator, resp[:len(separator)]) { |
|
|
if !bytes.Equal(separator, resp[:len(separator)]) { |
|
|
return nil, nil, errors.New("Cannot find 0xCAFE") |
|
|
return nil, nil, errors.New("Cannot find 0xCAFE") |
|
|
} |
|
|
} |
|
|
fmt.Println("successs") |
|
|
|
|
|
|
|
|
|
|
|
sig = resp[len(separator):] |
|
|
sig = resp[len(separator):] |
|
|
return key, sig, nil |
|
|
return key, sig, nil |
|
|