Instance Method
add(_:)
Create a new PrivateKey by adding tweak to the secret key. When tweaking keys, implicit negations are handled when odd Y coordinates are reached. REF
- iOS 13.0+
- macCatalyst 13.0+
- macOS 10.15+
- tvOS 13.0+
- visionOS 1.0+
- watchOS 6.0+
func add(_ tweak: [UInt8]) throws -> P256K.Schnorr.PrivateKey
Parameters
-
tweak
-
the 32-byte tweak object
Return Value
tweaked PrivateKey object