aboutsummaryrefslogtreecommitdiff
path: root/lib/Net/Hawk/Types.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Net/Hawk/Types.pm')
-rw-r--r--lib/Net/Hawk/Types.pm14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/Net/Hawk/Types.pm b/lib/Net/Hawk/Types.pm
new file mode 100644
index 0000000..e1caec3
--- /dev/null
+++ b/lib/Net/Hawk/Types.pm
@@ -0,0 +1,14 @@
+package Net::Hawk::Types;
+use strict;
+use warnings;
+use 5.010;
+use Type::Library
+ -base,
+ -declare => qw(Algorithm);
+use Type::Utils -all;
+use Types::Standard qw(Str Enum);
+
+declare Algorithm, as Enum[qw(sha1 sha256)];
+
+1;
+