func (e *Engine) Sign(ctx context.Context, s SignatureKeyPair, b []byte) ([]byte, error) {
	pk, err := e.Unseal(ctx, s.Private, s.PNonce)
	if err != nil {
		return nil, err
	}

	err = ctxutil.ErrIfDone(ctx)
	if err != nil {
		return nil, err
	}

	return ed25519.Sign(pk, b), nil
}
// Sign signs b bytes using the provided Sealed ed25519 keypair.
Sign signs b bytes using the provided Sealed ed25519 keypair.
// Sign signs b bytes using the provided Sealed ed25519 keypair .
func (e *Engine) Sign(ctx context.Context, s SignatureKeyPair, b []byte) ([]byte, error) {
	pk, err := e.Unseal(ctx, s.Private, s.PNonce)
	if err != nil {
		return nil, err
	}
	err = ctxutil.ErrIfDone(ctx)
	if err != nil {
		return nil, err
	}
	return ed25519.Sign(pk, b), nil
}
func ( e * Engine ) Sign ( ctx context . Context , s SignatureKeyPair , b [ ] byte ) ( [ ] byte , error ) { pk , err := e . Unseal ( ctx , s . Private , s . PNonce ) if err != nil { return nil , err } err = ctxutil . ErrIfDone ( ctx ) if err != nil { return nil , err } return ed25519 . Sign ( pk , b ) , nil }
Sign signs b bytes using the provided Sealed ed25519 keypair.
Sign signs b bytes using the provided Sealed ed25519 keypair .