forked from TrueCloudLab/frostfs-sdk-go
Move to frostfs-sdk-go
Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
This commit is contained in:
parent
45a6e7a7c2
commit
4c779423f5
177 changed files with 739 additions and 737 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
Package neofscrypto collects NeoFS cryptographic primitives.
|
||||
Package frostfscrypto collects NeoFS cryptographic primitives.
|
||||
|
||||
Signer type unifies entities for signing NeoFS data.
|
||||
|
||||
|
@ -25,11 +25,11 @@ PublicKey allows to verify signatures.
|
|||
// ...
|
||||
|
||||
Signature can be also used to process NeoFS API V2 protocol messages
|
||||
(see neo.fs.v2.refs package in https://github.com/nspcc-dev/neofs-api).
|
||||
(see neo.fs.v2.refs package in https://github.com/TrueCloudLab/frostfs-api).
|
||||
|
||||
On client side:
|
||||
|
||||
import "github.com/nspcc-dev/neofs-api-go/v2/refs"
|
||||
import "github.com/TrueCloudLab/frostfs-api-go/v2/refs"
|
||||
|
||||
var msg refs.Signature
|
||||
sig.WriteToV2(&msg)
|
||||
|
@ -40,7 +40,7 @@ On server side:
|
|||
|
||||
// recv msg
|
||||
|
||||
var sig neofscrypto.Signature
|
||||
var sig frostfscrypto.Signature
|
||||
sig.ReadFromV2(msg)
|
||||
|
||||
// process sig
|
||||
|
@ -48,4 +48,4 @@ On server side:
|
|||
Using package types in an application is recommended to potentially work with
|
||||
different protocol versions with which these types are compatible.
|
||||
*/
|
||||
package neofscrypto
|
||||
package frostfscrypto
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue