Skip to content

Commit b7f95c4

Browse files
committed
Merge branch 'main'
2 parents d123d3f + df85f7f commit b7f95c4

File tree

9 files changed

+76
-10
lines changed

9 files changed

+76
-10
lines changed

.github/workflows/swift.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# This workflow will build a Swift project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
3+
4+
name: Swift
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
10+
jobs:
11+
build:
12+
runs-on: macos-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: swift-actions/setup-swift@v2
18+
with:
19+
swift-version: "6.0.0"
20+
- name: Get swift version
21+
run: swift --version
22+
23+
- name: Build
24+
run: swift build -v
25+
26+
- name: Run tests
27+
run: swift test -v

.vscode/launch.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"configurations": [
3+
{
4+
"type": "lldb",
5+
"request": "launch",
6+
"args": [],
7+
"cwd": "${workspaceFolder:ATCryptography}",
8+
"name": "Debug App",
9+
"program": "${workspaceFolder:ATCryptography}/.build/debug/App",
10+
"preLaunchTask": "swift: Build Debug App"
11+
},
12+
{
13+
"type": "lldb",
14+
"request": "launch",
15+
"args": [],
16+
"cwd": "${workspaceFolder:ATCryptography}",
17+
"name": "Release App",
18+
"program": "${workspaceFolder:ATCryptography}/.build/release/App",
19+
"preLaunchTask": "swift: Build Release App"
20+
}
21+
]
22+
}

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

.vscode/tasks.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "Build",
6+
"type": "shell",
7+
"command": "swift build && .build/debug",
8+
"presentation": {
9+
"reveal": "always"
10+
},
11+
"group": {
12+
"kind": "build",
13+
"isDefault": true
14+
}
15+
}
16+
]
17+
}

Package.resolved

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ let package = Package(
2020
],
2121
dependencies: [
2222
.package(url: "https://github.com/apple/swift-crypto.git", "1.0.0" ..< "4.0.0"),
23-
.package(url: "https://github.com/21-DOT-DEV/swift-secp256k1.git", from: "0.18.0"),
23+
.package(url: "https://github.com/21-DOT-DEV/swift-secp256k1.git", exact: "0.18.0"),
2424
.package(url: "https://github.com/attaswift/BigInt.git", from: "5.5.1")
2525
],
2626
targets: [

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<img src="https://github.com/ATProtoKit/ATCryptography/blob/main/Sources/ATCryptography/ATCryptography.docc/Resources/atcryptography_icon.png" height="128" alt="A icon for ATCryptography, which contains three stacks of rounded rectangles in an isometric top view. At the top stack, the at symbol is in a thick weight, with a pointed arrow at the tip. The background of the stack contains many 0s and 1s in a fade. The three stacks are lighter shades of blue.">
2+
<img src="https://github.com/ATProtoKit/ATCryptography/blob/main/Sources/ATCryptography/ATCryptography.docc/Resources/atcryptography_icon.png" height="128" alt="An icon for ATCryptography, which contains three stacks of rounded rectangles in an isometric top view. At the top stack, the at symbol is in a thick weight, with a pointed arrow at the tip. The background of the stack contains many 0s and 1s in a fade. The three stacks are lighter shades of blue.">
33
</p>
44

55
<h1 align="center">ATCryptography</h1>
@@ -20,7 +20,7 @@
2020

2121
</div>
2222

23-
This package implements cryptographic operations required by the AT Protocol, using Apple's [swift-crypto](https://github.com/apple/swift-crypto) and compatible libraries.
23+
This Swift package implements cryptographic operations required by the AT Protocol, using Apple's [swift-crypto](https://github.com/apple/swift-crypto) and compatible libraries. It's designed to be similar in features as the [`crypto`](https://github.com/bluesky-social/atproto/tree/main/packages/crypto) package in the official [`atproto`](https://github.com/bluesky-social/atproto) TypeScript repository.
2424
ATCryptography supports the following cryptographic systems:
2525
- "p256," otherwise known as "secp256r1" or "NIST P-256."
2626
- "k256," otherwise known as "secp256k1" or "NIST K-256."

Sources/ATCryptography/ATCryptography.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Cryptography.swift
3-
// ATButler
3+
// ATCryptography
44
//
55
// Created by Christopher Jr Riley on 2025-03-03.
66
//

Sources/ATCryptography/BaseRadix/Base58.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77

88
import Foundation
9-
import Crypto
109
import BigInt
1110

1211
/// Represents a Base58 encoding alphabet.

0 commit comments

Comments
 (0)