service: implement a function for signing data

This commit is contained in:
Leonard Lyubich 2020-05-04 18:52:56 +03:00
parent eb94cf7549
commit 0ffb1bd61d
4 changed files with 189 additions and 0 deletions

View file

@ -16,3 +16,6 @@ const ErrCannotFindOwner = internal.Error("cannot find owner public key")
// ErrWrongOwner is raised when passed OwnerID not equal to present PublicKey
const ErrWrongOwner = internal.Error("wrong owner")
// ErrNilSignedDataSource returned by functions that expect a non-nil SignedDataSource argument, but received nil.
const ErrNilSignedDataSource = internal.Error("signed data source is nil")