From 7f5bb4f7cfe24c2aeb25c930586235b60367fa16 Mon Sep 17 00:00:00 2001 From: Afr Schoe <58883403+q9f@users.noreply.github.com> Date: Wed, 29 Sep 2021 12:21:08 +0200 Subject: [PATCH] docs: regenerate crystal documentation (#46) --- docs/Secp256k1.html | 89 +++++------ docs/Secp256k1/Bitcoin.html | 161 +++++++++---------- docs/Secp256k1/Bitcoin/Account.html | 121 ++++++-------- docs/Secp256k1/Core.html | 79 +++++----- docs/Secp256k1/ECDSASignature.html | 79 +++++----- docs/Secp256k1/ECPoint.html | 79 +++++----- docs/Secp256k1/Ethereum.html | 83 +++++----- docs/Secp256k1/Ethereum/Account.html | 93 +++++------ docs/Secp256k1/Ethereum/Enode.html | 107 ++++++------- docs/Secp256k1/Hash.html | 155 ++++++++---------- docs/Secp256k1/Keypair.html | 93 +++++------ docs/Secp256k1/Signature.html | 79 +++++----- docs/Secp256k1/Util.html | 103 ++++++------ docs/css/style.css | 62 +++++++- docs/index.html | 89 ++++++----- docs/index.json | 2 +- docs/js/doc.js | 225 +++++++++++++++++---------- docs/search-index.js | 2 +- 18 files changed, 867 insertions(+), 834 deletions(-) diff --git a/docs/Secp256k1.html b/docs/Secp256k1.html index 362be05..2fccf68 100644 --- a/docs/Secp256k1.html +++ b/docs/Secp256k1.html @@ -3,54 +3,65 @@ - + + + + + - - - - Secp256k1 - github.com/q9f/secp256k1.cr + + Secp256k1 - secp256k1 0.3.5-dev + @@ -644,7 +635,7 @@

Tells if the Bitcoin::Account is compressed.

-
btc.is_compressed?
+
btc.is_compressed?
 # => false

Returns true if the compressed format is used.

@@ -653,8 +644,6 @@


- [View source] -
@@ -674,8 +663,6 @@


- [View source] -
@@ -695,8 +682,6 @@


- [View source] -
@@ -712,15 +697,13 @@

Gets the account formatted as Bitcoin address.

-
btc.to_s
+
btc.to_s
 # => "1Gbxhju13BpwpzzFRgNr2TDYCRTg94kgFC"

- [View source] -
@@ -740,8 +723,6 @@


- [View source] -
@@ -761,8 +742,6 @@


- [View source] -
@@ -779,15 +758,13 @@

Computes the version byte for the private Wallet-Import Format which is offset by + 0x80 from the public address #version byte.

-
btc.version_wif
+
btc.version_wif
 # => "80"

- [View source] -
@@ -807,8 +784,6 @@


- [View source] -
@@ -828,8 +803,6 @@


- [View source] -
diff --git a/docs/Secp256k1/Core.html b/docs/Secp256k1/Core.html index 921c716..116202c 100644 --- a/docs/Secp256k1/Core.html +++ b/docs/Secp256k1/Core.html @@ -3,54 +3,65 @@ - + + + + + - - - - Secp256k1::Core - github.com/q9f/secp256k1.cr + + Secp256k1::Core - secp256k1 0.3.5-dev + diff --git a/docs/Secp256k1/ECDSASignature.html b/docs/Secp256k1/ECDSASignature.html index 60033be..9a108fd 100644 --- a/docs/Secp256k1/ECDSASignature.html +++ b/docs/Secp256k1/ECDSASignature.html @@ -3,54 +3,65 @@ - + + + + + - - - - Secp256k1::ECDSASignature - github.com/q9f/secp256k1.cr + + Secp256k1::ECDSASignature - secp256k1 0.3.5-dev + @@ -422,8 +423,6 @@


- [View source] -
diff --git a/docs/Secp256k1/ECPoint.html b/docs/Secp256k1/ECPoint.html index 3bb1400..6c8abf3 100644 --- a/docs/Secp256k1/ECPoint.html +++ b/docs/Secp256k1/ECPoint.html @@ -3,54 +3,65 @@ - + + + + + - - - - Secp256k1::ECPoint - github.com/q9f/secp256k1.cr + + Secp256k1::ECPoint - secp256k1 0.3.5-dev + @@ -423,8 +424,6 @@


- [View source] -
diff --git a/docs/Secp256k1/Ethereum.html b/docs/Secp256k1/Ethereum.html index f219c20..b8cd2dd 100644 --- a/docs/Secp256k1/Ethereum.html +++ b/docs/Secp256k1/Ethereum.html @@ -3,54 +3,65 @@ - + + + + + - - - - Secp256k1::Ethereum - github.com/q9f/secp256k1.cr + + Secp256k1::Ethereum - secp256k1 0.3.5-dev + diff --git a/docs/Secp256k1/Ethereum/Account.html b/docs/Secp256k1/Ethereum/Account.html index 6371960..fb398ca 100644 --- a/docs/Secp256k1/Ethereum/Account.html +++ b/docs/Secp256k1/Ethereum/Account.html @@ -3,54 +3,65 @@ - + + + + + - - - - Secp256k1::Ethereum::Account - github.com/q9f/secp256k1.cr + + Secp256k1::Ethereum::Account - secp256k1 0.3.5-dev + @@ -395,8 +400,6 @@


- [View source] -
@@ -416,8 +419,6 @@


- [View source] -
@@ -433,15 +434,13 @@

Gets the private key as hexadecimal formatted string literal.

-
eth.get_secret
+
eth.get_secret
 # => "53d77137b39427a35d8c4b187f532d3912e1e7135985e730633e1e3c1b87ce97"

- [View source] -
@@ -461,8 +460,6 @@


- [View source] -
@@ -482,8 +479,6 @@


- [View source] -
@@ -499,15 +494,13 @@

Gets the account formatted as Ethereum address.

-
eth.to_s
+
eth.to_s
 # => "0x224008a0F3d3cB989c807F568c7f99Bf451328A6"

- [View source] -
diff --git a/docs/Secp256k1/Ethereum/Enode.html b/docs/Secp256k1/Ethereum/Enode.html index 2dbc522..26d04a1 100644 --- a/docs/Secp256k1/Ethereum/Enode.html +++ b/docs/Secp256k1/Ethereum/Enode.html @@ -3,54 +3,65 @@ - + + + + + - - - - Secp256k1::Ethereum::Enode - github.com/q9f/secp256k1.cr + + Secp256k1::Ethereum::Enode - secp256k1 0.3.5-dev + @@ -428,7 +431,7 @@

Generates a new Ethereum::Enode from a fresh random Keypair.

-
p2p = Secp256k1::Ethereum::Enode.new
+
p2p = Secp256k1::Ethereum::Enode.new
 # => #<Secp256k1::Ethereum::Enode:0x7f81ef21ab80>

Note, this tries to find out the public IP address and silently falls back to "127.0.0.1" if it fails.

@@ -437,8 +440,6 @@


- [View source] -
@@ -472,8 +473,6 @@


- [View source] -
@@ -493,8 +492,6 @@


- [View source] -
@@ -510,18 +507,16 @@

Tries to find out the public IP address for the node.

-

It queries ident.me for a potential public IP and silently +

It queries ident.me for a potential public IP and silently falls back to "127.0.0.1" if it fails without raising. Should be used with caution.

-
p2p.get_my_ip
+
p2p.get_my_ip
 # => "84.160.86.205"

- [View source] -
@@ -537,15 +532,13 @@

Gets the private key as hexadecimal formatted string literal.

-
p2p.get_secret
+
p2p.get_secret
 # => "53d77137b39427a35d8c4b187f532d3912e1e7135985e730633e1e3c1b87ce97"

- [View source] -
@@ -565,8 +558,6 @@


- [View source] -
@@ -586,8 +577,6 @@


- [View source] -
@@ -603,15 +592,13 @@

Gets the Enode formatted as devp2p enode address.

-
p2p.to_s
+
p2p.to_s
 # => "enode://e097fc69f0b92f711620511c07fefdd648e469df46b1e4385a00a1786f6bc55b7d9011bb589e883d8a7947cfb37dc6b3c8beae9c614cab4a83009bd9d8732a9f@84.160.86.205:30303"

- [View source] -
diff --git a/docs/Secp256k1/Hash.html b/docs/Secp256k1/Hash.html index 9902c64..c9d7ff0 100644 --- a/docs/Secp256k1/Hash.html +++ b/docs/Secp256k1/Hash.html @@ -3,54 +3,65 @@ - + + + + + - - - - Secp256k1::Hash - github.com/q9f/secp256k1.cr + + Secp256k1::Hash - secp256k1 0.3.5-dev + @@ -423,15 +428,13 @@

  • s (String): The Base-58 encoded string to be decoded.
-
Secp256k1::Hash.base58_decode "1CSSfnxKnQK1GDWSaWqNpYXSdfPTtSooHt"
+
Secp256k1::Hash.base58_decode "1CSSfnxKnQK1GDWSaWqNpYXSdfPTtSooHt"
 # => "007d7935bde6c9341de87a4d64588783033e23472d7322c46b"

- [View source] -
@@ -451,15 +454,13 @@

  • h (String): The hexadecimal string to be encoded.
-
Secp256k1::Hash.base58_encode "007d7935bde6c9341de87a4d64588783033e23472d7322c46b"
+
Secp256k1::Hash.base58_encode "007d7935bde6c9341de87a4d64588783033e23472d7322c46b"
 # => "1CSSfnxKnQK1GDWSaWqNpYXSdfPTtSooHt"

- [View source] -
@@ -479,15 +480,13 @@

  • b (Bytes): the byte array to be converted.
-
Secp256k1::Hash.bin_to_hex Bytes[183, 149, 205, 44, 92, 224, 204, 99, 44, 161, 246, 94, 146, 27, 156, 117, 27, 54, 62, 151, 252, 174, 236, 129, 192, 42, 133, 183, 99, 68, 130, 104]
+
Secp256k1::Hash.bin_to_hex Bytes[183, 149, 205, 44, 92, 224, 204, 99, 44, 161, 246, 94, 146, 27, 156, 117, 27, 54, 62, 151, 252, 174, 236, 129, 192, 42, 133, 183, 99, 68, 130, 104]
 => "b795cd2c5ce0cc632ca1f65e921b9c751b363e97fcaeec81c02a85b763448268"

- [View source] -
@@ -507,15 +506,13 @@

  • h (String): the hexadecimal string to be converted.
-
Secp256k1::Hash.hex_to_bin "b795cd2c5ce0cc632ca1f65e921b9c751b363e97fcaeec81c02a85b763448268"
+
Secp256k1::Hash.hex_to_bin "b795cd2c5ce0cc632ca1f65e921b9c751b363e97fcaeec81c02a85b763448268"
 => Bytes[183, 149, 205, 44, 92, 224, 204, 99, 44, 161, 246, 94, 146, 27, 156, 117, 27, 54, 62, 151, 252, 174, 236, 129, 192, 42, 133, 183, 99, 68, 130, 104]

- [View source] -
@@ -535,24 +532,22 @@

  • b (Bytes): the byte array to be hashed.
-
Secp256k1::Hash.keccak256 Bytes[183, 149, 205, 44, 92, 224, 204, 99, 44, 161, 246, 94, 146, 27, 156, 117, 27, 54, 62, 151, 252, 174, 236, 129, 192, 42, 133, 183, 99, 68, 130, 104]
+
Secp256k1::Hash.keccak256 Bytes[183, 149, 205, 44, 92, 224, 204, 99, 44, 161, 246, 94, 146, 27, 156, 117, 27, 54, 62, 151, 252, 174, 236, 129, 192, 42, 133, 183, 99, 68, 130, 104]
 # => "fcb41efa0456ba9f27e573422d6b5898c61da6f2137d07e4dae618eddd72e003"

- [View source] -
-
+
- def self.keccak256_string(h : String) + def self.keccak256(h : String) - # + #
@@ -563,15 +558,13 @@

  • h (String): the string literal to be hashed.
-
Secp256k1::Hash.keccak256_string "b795cd2c5ce0cc632ca1f65e921b9c751b363e97fcaeec81c02a85b763448268"
+
Secp256k1::Hash.keccak256 "b795cd2c5ce0cc632ca1f65e921b9c751b363e97fcaeec81c02a85b763448268"
 # => "99cfa79866ec88f87f8e25a98a4b9873f3f8ee82482a317a5494572b00f51cec"


- [View source] -
@@ -591,24 +584,22 @@

  • b (Bytes): the byte array to be hashed.
-
Secp256k1::Hash.ripemd160 Bytes[183, 149, 205, 44, 92, 224, 204, 99, 44, 161, 246, 94, 146, 27, 156, 117, 27, 54, 62, 151, 252, 174, 236, 129, 192, 42, 133, 183, 99, 68, 130, 104]
+
Secp256k1::Hash.ripemd160 Bytes[183, 149, 205, 44, 92, 224, 204, 99, 44, 161, 246, 94, 146, 27, 156, 117, 27, 54, 62, 151, 252, 174, 236, 129, 192, 42, 133, 183, 99, 68, 130, 104]
 # => "5f3455f9ac58e25be08c99a7090108751b4796b9"


- [View source] -
-
+
- def self.ripemd160_string(h : String) + def self.ripemd160(h : String) - # + #
@@ -619,15 +610,13 @@

  • h (String): the string literal to be hashed.
-
Secp256k1::Hash.ripemd160_string "b795cd2c5ce0cc632ca1f65e921b9c751b363e97fcaeec81c02a85b763448268"
+
Secp256k1::Hash.ripemd160 "b795cd2c5ce0cc632ca1f65e921b9c751b363e97fcaeec81c02a85b763448268"
 # => "46dff6cd5666c8e67db26ac0dfaf685bf71fc5f6"


- [View source] -
@@ -647,24 +636,22 @@

  • b (Bytes): the byte array to be hashed.
-
Secp256k1::Hash.sha256 Bytes[183, 149, 205, 44, 92, 224, 204, 99, 44, 161, 246, 94, 146, 27, 156, 117, 27, 54, 62, 151, 252, 174, 236, 129, 192, 42, 133, 183, 99, 68, 130, 104]
+
Secp256k1::Hash.sha256 Bytes[183, 149, 205, 44, 92, 224, 204, 99, 44, 161, 246, 94, 146, 27, 156, 117, 27, 54, 62, 151, 252, 174, 236, 129, 192, 42, 133, 183, 99, 68, 130, 104]
 # => "2739cc5f45c0e05236527e4e687dc54f0d5e88be64b9a90e5264a6721c0c71f2"


- [View source] -
-
+
- def self.sha256_string(h : String) + def self.sha256(h : String) - # + #
@@ -675,15 +662,13 @@

  • h (String): the string literal to be hashed.
-
Secp256k1::Hash.sha256_string "b795cd2c5ce0cc632ca1f65e921b9c751b363e97fcaeec81c02a85b763448268"
+
Secp256k1::Hash.sha256 "b795cd2c5ce0cc632ca1f65e921b9c751b363e97fcaeec81c02a85b763448268"
 # => "452a41c28c9981faebb402095a5d553de28dc212338057aed27081110dfb907a"


- [View source] -
@@ -703,24 +688,22 @@

  • b (Bytes): the byte array to be hashed.
-
Secp256k1::Hash.sha3 Bytes[183, 149, 205, 44, 92, 224, 204, 99, 44, 161, 246, 94, 146, 27, 156, 117, 27, 54, 62, 151, 252, 174, 236, 129, 192, 42, 133, 183, 99, 68, 130, 104]
+
Secp256k1::Hash.sha3 Bytes[183, 149, 205, 44, 92, 224, 204, 99, 44, 161, 246, 94, 146, 27, 156, 117, 27, 54, 62, 151, 252, 174, 236, 129, 192, 42, 133, 183, 99, 68, 130, 104]
 # => "66bb65180108362a3e25ba8282f7b96bfe840ce34a2e5dbc421aa8a590cc5f2e"


- [View source] -
-
+
- def self.sha3_string(h : String) + def self.sha3(h : String) - # + #
@@ -731,15 +714,13 @@

  • h (String): the string literal to be hashed.
-
Secp256k1::Hash.sha3_string "b795cd2c5ce0cc632ca1f65e921b9c751b363e97fcaeec81c02a85b763448268"
+
Secp256k1::Hash.sha3 "b795cd2c5ce0cc632ca1f65e921b9c751b363e97fcaeec81c02a85b763448268"
 # => "aedc012933679615eb93fb0063f53010e6f0034e92aaccf97dacc46e338037e9"


- [View source] -
diff --git a/docs/Secp256k1/Keypair.html b/docs/Secp256k1/Keypair.html index 1a57e40..8f0c797 100644 --- a/docs/Secp256k1/Keypair.html +++ b/docs/Secp256k1/Keypair.html @@ -3,54 +3,65 @@ - + + + + + - - - - Secp256k1::Keypair - github.com/q9f/secp256k1.cr + + Secp256k1::Keypair - secp256k1 0.3.5-dev + @@ -394,15 +399,13 @@

Gets the private key as hexadecimal formatted string literal.

-
key.get_secret
+
key.get_secret
 # => "53d77137b39427a35d8c4b187f532d3912e1e7135985e730633e1e3c1b87ce97"


- [View source] -
@@ -422,8 +425,6 @@


- [View source] -
@@ -443,8 +444,6 @@


- [View source] -
@@ -464,8 +463,6 @@


- [View source] -
@@ -485,8 +482,6 @@


- [View source] -
@@ -502,15 +497,13 @@

Gets the key formatted as uncompressed public key string.

-
key.to_s
+
key.to_s
 # => "e097fc69f0b92f711620511c07fefdd648e469df46b1e4385a00a1786f6bc55b7d9011bb589e883d8a7947cfb37dc6b3c8beae9c614cab4a83009bd9d8732a9f"

- [View source] -
diff --git a/docs/Secp256k1/Signature.html b/docs/Secp256k1/Signature.html index 873df54..26e551d 100644 --- a/docs/Secp256k1/Signature.html +++ b/docs/Secp256k1/Signature.html @@ -3,54 +3,65 @@ - + + + + + - - - - Secp256k1::Signature - github.com/q9f/secp256k1.cr + + Secp256k1::Signature - secp256k1 0.3.5-dev + @@ -392,7 +395,7 @@

  • priv (BigInt): the private key to be used.
-
Secp256k1::Util.public_key_from_private BigInt.new("b795cd2c5ce0cc632ca1f65e921b9c751b363e97fcaeec81c02a85b763448268", 16)
+
Secp256k1::Util.public_key_from_private BigInt.new("b795cd2c5ce0cc632ca1f65e921b9c751b363e97fcaeec81c02a85b763448268", 16)

Returns an ECPoint containing the public key.

@@ -400,8 +403,6 @@


- [View source] -
@@ -424,15 +425,13 @@

  • p (ECPoint): the public key point which shall be uncompressed.
-
Secp256k1::Util.public_key_uncompressed my_public_key
+
Secp256k1::Util.public_key_uncompressed my_public_key
 # => "d885aed4bcaf3a8c95a57e3be08caa1bd6a060a68b9795c03129073597fcb19a67299d1cf25955e9b6425583cbc33f4ab831f5a31ef88c7167e9eb714cc758a5"

- [View source] -
@@ -455,15 +454,13 @@

  • p (ECPoint): the public key point which shall be uncompressed.
-
Secp256k1::Util.public_key_uncompressed_prefix my_public_key
+
Secp256k1::Util.public_key_uncompressed_prefix my_public_key
 # => "04d885aed4bcaf3a8c95a57e3be08caa1bd6a060a68b9795c03129073597fcb19a67299d1cf25955e9b6425583cbc33f4ab831f5a31ef88c7167e9eb714cc758a5"

- [View source] -
@@ -483,7 +480,7 @@

  • pub (String): the public key in any format.
  • prime (BigInt): the prime number that shapes the field, default: EC_PRIME_P.
-
Secp256k1::Util.restore_public_key "d885aed4bcaf3a8c95a57e3be08caa1bd6a060a68b9795c03129073597fcb19a67299d1cf25955e9b6425583cbc33f4ab831f5a31ef88c7167e9eb714cc758a5"
+
Secp256k1::Util.restore_public_key "d885aed4bcaf3a8c95a57e3be08caa1bd6a060a68b9795c03129073597fcb19a67299d1cf25955e9b6425583cbc33f4ab831f5a31ef88c7167e9eb714cc758a5"

Returns an ECPoint containing the public key.

@@ -493,8 +490,6 @@


- [View source] -
@@ -514,15 +509,13 @@

  • i (Int32): the integer to be formatted as padded hex byte.
-
Secp256k1::Util.to_padded_hex_01 7
+
Secp256k1::Util.to_padded_hex_01 7
 # => "07"

- [View source] -
@@ -543,15 +536,13 @@

  • i (BigInt): the integer to be formatted as padded hex byte string.
-
Secp256k1::Util.to_padded_hex_32 BigInt.new 7
+
Secp256k1::Util.to_padded_hex_32 BigInt.new 7
 # => "0000000000000000000000000000000000000000000000000000000000000007"

- [View source] -
diff --git a/docs/css/style.css b/docs/css/style.css index a63baf5..20bb084 100644 --- a/docs/css/style.css +++ b/docs/css/style.css @@ -56,10 +56,11 @@ body { padding: 0 0 30px; box-shadow: inset -3px 0 4px rgba(0,0,0,.35); line-height: 1.2; + z-index: 0; } .sidebar .search-box { - padding: 8px 9px; + padding: 13px 9px; } .sidebar input { @@ -106,6 +107,55 @@ body { text-indent: 2px; } +.project-summary { + padding: 9px 15px 30px 30px; +} + +.project-name { + font-size: 1.4rem; + margin: 0; + color: #f4f4f4; + font-weight: 600; +} + +.project-version { + margin-top: 5px; + display: inline-block; + position: relative; +} + +.project-version > form::after { + position: absolute; + right: 0; + top: 0; + content: "\25BC"; + font-size: .6em; + line-height: 1.2rem; + z-index: -1; +} + +.project-versions-nav { + cursor: pointer; + margin: 0; + padding: 0 .9em 0 0; + border: none; + -moz-appearance: none; + -webkit-appearance: none; + appearance: none; + background-color: transparent; + color: inherit; + font-family: inherit; + font-size: inherit; + line-height: inherit; +} +.project-versions-nav:focus { + outline: none; +} + +.project-versions-nav > option { + color: initial; +} + .sidebar ul { margin: 0; padding: 0; @@ -148,10 +198,6 @@ body { color: #866BA6; } -.repository-links { - padding: 5px 15px 5px 30px; -} - .types-list li ul { overflow: hidden; height: 0; @@ -414,6 +460,12 @@ span.flag.purple { border-color: #1F0B37; } +span.flag.lime { + background-color: #a3ff00; + color: #222222; + border-color: #00ff1e; +} + .tooltip>span { position: absolute; opacity: 0; diff --git a/docs/index.html b/docs/index.html index 7cdeb50..84206f5 100644 --- a/docs/index.html +++ b/docs/index.html @@ -3,54 +3,65 @@ - + + + + + - - - - README - github.com/q9f/secp256k1.cr + + secp256k1 0.3.5-dev +