coreapi: Name tests
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com> This commit was moved from ipfs/interface-go-ipfs-core@d28b9301ac2ca1a9e209680ba5bb613f19cbb6fe This commit was moved from ipfs/boxo@78823e7ccbdc16b651c269f86e4cf5915144250a
Łukasz Magiera committed
Jan 2, 2018 at 00:53 UTC
ef926cb0e353d66321a5bc364c53b9adc2b7800b
1 file changed
+4
-1
core/coreiface/interface.go
+4
-1
@@ -157,7 +157,10 @@ type KeyAPI interface {
157
WithType(algorithm string) options.KeyGenerateOption
158
159
// WithSize is an option for Generate which specifies the size of the key to
160
- // generated. Default is 0
160
+ // generated. Default is -1
161
+ //
162
+ // value of -1 means 'use default size for key type':
163
+ // * 2048 for RSA
164
WithSize(size int) options.KeyGenerateOption
165
166
// Rename renames oldName key to newName. Returns the key and whether another