this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

rename atproto/crypto to atproto/atcrypto

+15 -15
+3 -3
atproto/crypto/cmd/atp-crypto/main.go atproto/atcrypto/cmd/atp-crypto/main.go
··· 5 5 "log/slog" 6 6 "os" 7 7 8 - "github.com/bluesky-social/indigo/atproto/crypto" 8 + "github.com/bluesky-social/indigo/atproto/atcrypto" 9 9 10 10 "github.com/urfave/cli/v2" 11 11 ) ··· 40 40 41 41 func runGenerate(cctx *cli.Context) error { 42 42 if cctx.Bool("k256") { 43 - priv, err := crypto.GeneratePrivateKeyK256() 43 + priv, err := atcrypto.GeneratePrivateKeyK256() 44 44 if err != nil { 45 45 return err 46 46 } 47 47 fmt.Println(priv.Multibase()) 48 48 } else { 49 - priv, err := crypto.GeneratePrivateKeyP256() 49 + priv, err := atcrypto.GeneratePrivateKeyP256() 50 50 if err != nil { 51 51 return err 52 52 }
+2 -2
atproto/crypto/docs.go atproto/atcrypto/docs.go
··· 1 - // Package crypto provides cryptographic keys and operations, as used in atproto (the protocol) 1 + // Package atcrypto provides cryptographic keys and operations, as used in atproto (the protocol) 2 2 // 3 3 // This package attempts to abstract away the specific curves, compressions, signature variations, and other implementation details. The goal is to provide as few knobs and options as possible when working with this library. Use of cryptography in atproto is specified in https://atproto.com/specs/cryptography. 4 4 // ··· 8 8 // - K-256/secp256r1, internally implemented using https://gitlab.com/yawning/secp256k1-voi 9 9 // 10 10 // "Low-S" signatures are enforced for both key types, both when creating signatures and during verification, as required by the atproto specification. 11 - package crypto 11 + package atcrypto
+1 -1
atproto/crypto/examples_test.go atproto/atcrypto/examples_test.go
··· 1 - package crypto 1 + package atcrypto 2 2 3 3 import ( 4 4 "encoding/base64"
+1 -1
atproto/crypto/interop_fixtures_test.go atproto/atcrypto/interop_fixtures_test.go
··· 1 - package crypto 1 + package atcrypto 2 2 3 3 import ( 4 4 "encoding/base64"
+1 -1
atproto/crypto/jwk.go atproto/atcrypto/jwk.go
··· 1 - package crypto 1 + package atcrypto 2 2 3 3 import ( 4 4 "crypto/ecdsa"
+1 -1
atproto/crypto/jwk_test.go atproto/atcrypto/jwk_test.go
··· 1 - package crypto 1 + package atcrypto 2 2 3 3 import ( 4 4 "testing"
+1 -1
atproto/crypto/k256.go atproto/atcrypto/k256.go
··· 1 - package crypto 1 + package atcrypto 2 2 3 3 import ( 4 4 "crypto"
+1 -1
atproto/crypto/keys.go atproto/atcrypto/keys.go
··· 1 - package crypto 1 + package atcrypto 2 2 3 3 import ( 4 4 "errors"
+1 -1
atproto/crypto/keys_test.go atproto/atcrypto/keys_test.go
··· 1 - package crypto 1 + package atcrypto 2 2 3 3 import ( 4 4 "crypto/rand"
+1 -1
atproto/crypto/p256.go atproto/atcrypto/p256.go
··· 1 - package crypto 1 + package atcrypto 2 2 3 3 import ( 4 4 "crypto/ecdh"
+1 -1
atproto/crypto/p256_lowS.go atproto/atcrypto/p256_lowS.go
··· 1 - package crypto 1 + package atcrypto 2 2 3 3 import ( 4 4 "crypto/elliptic"
atproto/crypto/testdata/signature-fixtures.json atproto/atcrypto/testdata/signature-fixtures.json
atproto/crypto/testdata/w3c_didkey_K256.json atproto/atcrypto/testdata/w3c_didkey_K256.json
atproto/crypto/testdata/w3c_didkey_P256.json atproto/atcrypto/testdata/w3c_didkey_P256.json
+1 -1
atproto/crypto/w3c_didkey_test.go atproto/atcrypto/w3c_didkey_test.go
··· 1 - package crypto 1 + package atcrypto 2 2 3 3 import ( 4 4 "encoding/hex"