Skip to content

Commit

Permalink
Merge pull request #16 from TBD54566975/the-great-rename-of-2024
Browse files Browse the repository at this point in the history
chore: rename tbdex to web5
  • Loading branch information
mistermoe authored Jan 4, 2024
2 parents 62fbc94 + c759358 commit b3badb7
Show file tree
Hide file tree
Showing 145 changed files with 231 additions and 203 deletions.
3 changes: 3 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
clean:
cd packages/web5_flutter && flutter clean

get:
#!/bin/bash
echo "Getting dependencies for packages"
Expand Down
1 change: 0 additions & 1 deletion packages/tbdex_flutter/android/settings.gradle

This file was deleted.

17 changes: 0 additions & 17 deletions packages/tbdex_flutter/lib/tbdex_flutter_method_channel.dart

This file was deleted.

29 changes: 0 additions & 29 deletions packages/tbdex_flutter/lib/tbdex_flutter_platform_interface.dart

This file was deleted.

File renamed without changes.
File renamed without changes.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:convert';

import 'package:tbdex/tbdex.dart';
import 'package:web5/web5.dart';

void main() async {
final keyManager = InMemoryKeyManager();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:typed_data';

import 'package:tbdex/src/crypto/jwk.dart';
import 'package:web5/src/crypto/jwk.dart';

/// Enum [DsaName] representing supported Digital Signature Algorithm (DSA) names.
enum DsaName {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:typed_data';

import 'package:tbdex/tbdex.dart';
import 'package:web5/web5.dart';

class DsaAlgorithms {
static final _supportedAlgorithms = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import 'dart:typed_data';

import 'package:cryptography/cryptography.dart' as crypto;

import 'package:tbdex/src/extensions/base64url.dart';
import 'package:tbdex/src/crypto/dsa.dart';
import 'package:tbdex/src/crypto/jwk.dart';
import 'package:web5/src/extensions/base64url.dart';
import 'package:web5/src/crypto/dsa.dart';
import 'package:web5/src/crypto/jwk.dart';

final ed25519 = crypto.Ed25519();
final _base64UrlCodec = Base64Codec.urlSafe();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'dart:typed_data';

import 'package:tbdex/src/crypto/dsa.dart';
import 'package:tbdex/src/crypto/dsa_algorithms.dart';
import 'package:tbdex/src/crypto/jwk.dart';
import 'package:tbdex/src/crypto/key_manager.dart';
import 'package:web5/src/crypto/dsa.dart';
import 'package:web5/src/crypto/dsa_algorithms.dart';
import 'package:web5/src/crypto/jwk.dart';
import 'package:web5/src/crypto/key_manager.dart';

/// A class for managing cryptographic keys in-memory.
///
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:convert';
import 'package:cryptography/dart.dart';
import 'package:tbdex/src/extensions/base64url.dart';
import 'package:tbdex/src/extensions/json.dart';
import 'package:web5/src/extensions/base64url.dart';
import 'package:web5/src/extensions/json.dart';

// TODO: refactor into PrivateJwk PublicJwk classes

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:typed_data';

import 'package:tbdex/src/crypto/jwk.dart';
import 'package:tbdex/src/crypto/dsa.dart';
import 'package:web5/src/crypto/jwk.dart';
import 'package:web5/src/crypto/dsa.dart';

/// A key management interface that provides functionality for generating,
/// storing, and utilizing private keys and their associated public keys.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import "dart:math";
import 'dart:typed_data';

import "package:pointycastle/export.dart";
import 'package:tbdex/src/crypto/dsa.dart';
import 'package:tbdex/src/crypto/jwk.dart';
import "package:tbdex/src/extensions/base64url.dart";
import 'package:tbdex/src/extensions/bigint.dart';
import 'package:web5/src/crypto/dsa.dart';
import 'package:web5/src/crypto/jwk.dart';
import "package:web5/src/extensions/base64url.dart";
import 'package:web5/src/extensions/bigint.dart';

final _base64UrlCodec = Base64Codec.urlSafe();
final _base64UrlEncoder = _base64UrlCodec.encoder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:tbdex/src/crypto/key_manager.dart';
import 'package:web5/src/crypto/key_manager.dart';

abstract class Did {
String get uri;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import 'dart:convert';
import 'dart:io';

import 'package:tbdex/src/crypto/dsa.dart';
import 'package:tbdex/src/crypto/ed25519.dart';
import 'package:tbdex/src/crypto/secp256k1.dart';
import 'package:tbdex/src/dids/did.dart';
import 'package:tbdex/src/dids/did_document.dart';
import 'package:tbdex/src/dids/did_service.dart';
import 'package:tbdex/src/dids/did_uri.dart';
import 'package:tbdex/src/dids/did_verification_method.dart';
import 'package:tbdex/src/dns_packet/packet.dart';
import 'package:tbdex/src/crypto/key_manager.dart';
import 'package:tbdex/src/dids/did_resolution_result.dart';
import 'package:tbdex/src/dns_packet/txt_data.dart';
import 'package:tbdex/src/dns_packet/type.dart';
import 'package:tbdex/src/extensions/base64url.dart';
import 'package:web5/src/crypto/dsa.dart';
import 'package:web5/src/crypto/ed25519.dart';
import 'package:web5/src/crypto/secp256k1.dart';
import 'package:web5/src/dids/did.dart';
import 'package:web5/src/dids/did_document.dart';
import 'package:web5/src/dids/did_service.dart';
import 'package:web5/src/dids/did_uri.dart';
import 'package:web5/src/dids/did_verification_method.dart';
import 'package:web5/src/dns_packet/packet.dart';
import 'package:web5/src/crypto/key_manager.dart';
import 'package:web5/src/dids/did_resolution_result.dart';
import 'package:web5/src/dns_packet/txt_data.dart';
import 'package:web5/src/dns_packet/type.dart';
import 'package:web5/src/extensions/base64url.dart';

final Set<String> txtEntryNames = {'vm', 'auth', 'asm', 'agm', 'inv', 'del'};
final _base64UrlCodec = Base64Codec.urlSafe();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:tbdex/src/dids/did_service.dart';
import 'package:tbdex/src/dids/did_verification_method.dart';
import 'package:web5/src/dids/did_service.dart';
import 'package:web5/src/dids/did_verification_method.dart';

/// A set of data describing the DID subject including mechanisms such as:
/// * cryptographic public keys - used to authenticate itself and prove
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import 'dart:convert';

import 'package:tbdex/src/dids/did.dart';
import 'package:tbdex/src/crypto/dsa.dart';
import 'package:tbdex/src/crypto/jwk.dart';
import 'package:tbdex/src/dids/did_uri.dart';
import 'package:tbdex/src/extensions/json.dart';
import 'package:tbdex/src/dids/did_document.dart';
import 'package:tbdex/src/crypto/key_manager.dart';
import 'package:tbdex/src/dids/did_method_resolver.dart';
import 'package:tbdex/src/dids/did_resolution_result.dart';
import 'package:tbdex/src/dids/did_verification_method.dart';
import 'package:web5/src/dids/did.dart';
import 'package:web5/src/crypto/dsa.dart';
import 'package:web5/src/crypto/jwk.dart';
import 'package:web5/src/dids/did_uri.dart';
import 'package:web5/src/extensions/json.dart';
import 'package:web5/src/dids/did_document.dart';
import 'package:web5/src/crypto/key_manager.dart';
import 'package:web5/src/dids/did_method_resolver.dart';
import 'package:web5/src/dids/did_resolution_result.dart';
import 'package:web5/src/dids/did_verification_method.dart';

final base64UrlEncoder = Base64Codec.urlSafe().encoder;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:tbdex/src/dids/did_resolution_result.dart';
import 'package:web5/src/dids/did_resolution_result.dart';

/// Represents a method resolver for a specific DID method.
class DidMethodResolver {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:tbdex/src/dids/did_document.dart';
import 'package:tbdex/src/dids/did_document_metadata.dart';
import 'package:tbdex/src/dids/did_resolution_metadata.dart';
import 'package:web5/src/dids/did_document.dart';
import 'package:web5/src/dids/did_document_metadata.dart';
import 'package:web5/src/dids/did_resolution_metadata.dart';

/// A class representing the result of a DID (Decentralized Identifier)
/// resolution.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:tbdex/src/dids/did_method_resolver.dart';
import 'package:tbdex/src/dids/did_resolution_result.dart';
import 'package:tbdex/src/dids/did_uri.dart';
import 'package:web5/src/dids/did_method_resolver.dart';
import 'package:web5/src/dids/did_resolution_result.dart';
import 'package:web5/src/dids/did_uri.dart';

/// A resolver for Decentralized Identifiers (DIDs).
///
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:tbdex/src/crypto/jwk.dart';
import 'package:web5/src/crypto/jwk.dart';

/// A DID document can express verification methods, such as cryptographic
/// public keys, which can be used to authenticate or authorize interactions
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import 'dart:typed_data';

import 'package:tbdex/src/dns_packet/type.dart';
import 'package:tbdex/src/dns_packet/name.dart';
import 'package:tbdex/src/dns_packet/rdata.dart';
import 'package:tbdex/src/dns_packet/class.dart';
import 'package:tbdex/src/dns_packet/consts.dart';
import 'package:tbdex/src/dns_packet/opt_data.dart';
import 'package:tbdex/src/dns_packet/txt_data.dart';
import 'package:web5/src/dns_packet/type.dart';
import 'package:web5/src/dns_packet/name.dart';
import 'package:web5/src/dns_packet/rdata.dart';
import 'package:web5/src/dns_packet/class.dart';
import 'package:web5/src/dns_packet/consts.dart';
import 'package:web5/src/dns_packet/opt_data.dart';
import 'package:web5/src/dns_packet/txt_data.dart';

/// Represents an answer section in a DNS packet.
class DnsAnswer {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:typed_data';

import 'package:tbdex/src/dns_packet/opcode.dart';
import 'package:tbdex/src/dns_packet/rcode.dart';
import 'package:web5/src/dns_packet/opcode.dart';
import 'package:web5/src/dns_packet/rcode.dart';

class DnsHeader {
int id;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'dart:typed_data';
import 'package:tbdex/src/dns_packet/option_code.dart';
import 'package:web5/src/dns_packet/option_code.dart';

class DnsOptData {
final List<Option> options;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'dart:typed_data';

import 'package:tbdex/src/dns_packet/answer.dart';
import 'package:tbdex/src/dns_packet/header.dart';
import 'package:tbdex/src/dns_packet/question.dart';
import 'package:web5/src/dns_packet/answer.dart';
import 'package:web5/src/dns_packet/header.dart';
import 'package:web5/src/dns_packet/question.dart';

class DnsPacket {
DnsHeader header;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'dart:typed_data';

import 'package:tbdex/src/dns_packet/class.dart';
import 'package:tbdex/src/dns_packet/consts.dart';
import 'package:tbdex/src/dns_packet/name.dart';
import 'package:tbdex/src/dns_packet/type.dart';
import 'package:web5/src/dns_packet/class.dart';
import 'package:web5/src/dns_packet/consts.dart';
import 'package:web5/src/dns_packet/name.dart';
import 'package:web5/src/dns_packet/type.dart';

class DnsQuestion {
late DnsName name;
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:convert';
import 'dart:typed_data';

import 'package:tbdex/src/dns_packet/rdata.dart';
import 'package:web5/src/dns_packet/rdata.dart';

class DnsTxtData implements RData {
final List<String> value;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:convert';

import 'package:tbdex/src/extensions/base64url.dart';
import 'package:web5/src/extensions/base64url.dart';

final base64UrlEncoder = Base64Codec.urlSafe().encoder;
final base64UrlDecoder = Base64Codec.urlSafe().decoder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'dart:convert';
import 'dart:typed_data';

import 'package:tbdex/src/extensions/base64url.dart';
import 'package:tbdex/src/extensions/json.dart';
import 'package:tbdex/tbdex.dart';
import 'package:web5/src/extensions/base64url.dart';
import 'package:web5/src/extensions/json.dart';
import 'package:web5/web5.dart';

final base64UrlCodec = Base64Codec.urlSafe();
final base64UrlEncoder = base64UrlCodec.encoder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
library tbdex;
library web5;

export 'src/dids/did_jwk.dart';
export 'src/crypto/in_memory_key_manager.dart';
Expand Down
6 changes: 3 additions & 3 deletions packages/tbdex/pubspec.yaml → packages/web5/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: tbdex
description: Dart library for TBDex API.
name: web5
description: Dart library for Web5.
version: 0.1.0
repository: https://github.com/TBD54566975/tbdex-dart
repository: https://github.com/TBD54566975/web5-dart

environment:
sdk: ^3.1.4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:tbdex/src/jwt.dart';
import 'package:tbdex/tbdex.dart';
import 'package:web5/src/jwt.dart';
import 'package:web5/web5.dart';
import 'package:test/test.dart';

void main() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:convert';
import 'dart:typed_data';

import 'package:tbdex/src/crypto/secp256k1.dart';
import 'package:web5/src/crypto/secp256k1.dart';
import 'package:test/test.dart';

void main() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:tbdex/src/dids/did_dht.dart';
import 'package:web5/src/dids/did_dht.dart';
import 'package:test/test.dart';

void main() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:tbdex/tbdex.dart';
import 'package:web5/web5.dart';
import 'package:test/test.dart';

void main() {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# tbdex_flutter
# web5_flutter

A new Flutter plugin project.

Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit b3badb7

Please sign in to comment.